This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add photo slideshow option to balena dash
Change-type: minor Signed-off-by: Daniel Andrade <daniel@balena.io>
- Loading branch information
Showing
20 changed files
with
1,247 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Temporary files. | ||
.#* | ||
package-lock.json | ||
|
||
# Log files. | ||
*.log | ||
|
||
# Don't push node_modules - we want the build server to install these. | ||
node_modules/ | ||
apple/ | ||
dropbox/ | ||
temp.js | ||
#OSX hidden metadata file | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM balenalib/%%BALENA_MACHINE_NAME%%-node:11-buster-build | ||
|
||
# Defines our working directory in container | ||
WORKDIR /usr/src/app~ | ||
|
||
# Copies the package.json first for better cache on later pushes | ||
COPY package.json package.json | ||
|
||
# This install npm dependencies on the balena build server, | ||
# making sure to clean up the artifacts it creates in order to reduce the image size. | ||
RUN JOBS=MAX npm install --production --unsafe-perm && npm cache verify && rm -rf /tmp/ | ||
|
||
# This will copy all files in our root to the working directory in the container | ||
COPY . ./ | ||
|
||
# server.js will run when container starts up on the device | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "album-slideshow", | ||
"version": "1.0.0", | ||
"description": "Album Slideshow.", | ||
"main": "server.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node server.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/balena-io-projects/balena-dash.git" | ||
}, | ||
"keywords": [ | ||
"webserver", | ||
"nodejs", | ||
"expressjs" | ||
], | ||
"author": " Daniel Andrade <daniel@balena.io>", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/balena-io-projects/balena-dash/issues" | ||
}, | ||
"homepage": "https://github.com/balena-io-projects/balena-dash#readme", | ||
"dependencies": { | ||
"cors": "^2.8.5", | ||
"ejs": "*", | ||
"express": "*", | ||
"lodash.chunk": "^4.2.0", | ||
"request": "^2.88.0", | ||
"request-promise-native": "^1.0.3", | ||
"sharp":"0.22.1", | ||
"node-schedule": "1.3.2" | ||
} | ||
} |
Oops, something went wrong.