Simple slideshow webpage to display artwork with an artist credit.
Images are loaded from subdirectories within the directory build/public/images/
.
The name of the artist that is displayed is taken from the name of the directory the artwork is stored in.
Example: build/public/images/megalon/test.png
would load the image and display the artist name megalon
.
To add more artists, simply create a new directory and drop their artwork in there.
- Backend: NodeJS with TypeScript
- Routing: Express.js
- yarn v1.x
- NodeJS
- VisualStudio Code (recommended)
- Open a shell in the project directory
- Install packages with
yarn
- Copy
example.env
to.env
and fill out the information yarn build
to initialize files
Value | Usage |
---|---|
PORT | Port number. EX: 1234 |
NODE_ENV | development or production |
Views and stylesheets do not need to be "built", but the do need to be in the build folder.
You can use yarn copy
for this.
Recompile TS files on change using the command below
yarn dev
Run server and (hopefully) restart when any of the above changes occur
nodemon .
git pull
yarn
to install packages- Fill out .env and set variable
NODE_ENV
toproduction
yarn build
- Place images inside of the folder
build/public/images/(artist-name)/
node .
to start server
TODO: Move this to a docker container!