Skip to content

Slideshow webpage to display artwork with an artist credit.

Notifications You must be signed in to change notification settings

megalon/fan-art-slideshow

Repository files navigation

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.

Info

  • Backend: NodeJS with TypeScript
  • Routing: Express.js

🧪 Development

Requirements

  1. yarn v1.x
  2. NodeJS
  3. VisualStudio Code (recommended)

Setup

  1. Open a shell in the project directory
  2. Install packages with yarn
  3. Copy example.env to .env and fill out the information
  4. yarn build to initialize files

.env explaination

Value Usage
PORT Port number. EX: 1234
NODE_ENV development or production

File changes

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

  1. yarn dev

Run server and (hopefully) restart when any of the above changes occur

  1. nodemon .

🚀 Deploying

  1. git pull
  2. yarn to install packages
  3. Fill out .env and set variable NODE_ENV to production
  4. yarn build
  5. Place images inside of the folder build/public/images/(artist-name)/
  6. node . to start server

TODO: Move this to a docker container!

About

Slideshow webpage to display artwork with an artist credit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published