jwater7 / responsive-photo-gallery

NodeJS backend to serve a photo collection in a mobile-friendly and beautiful way
4 stars 2 forks source link

responsive-photo-gallery

NodeJS backend to serve a photo collection in a mobile-friendly and beautiful way The Express web server will start up on port 3000 by default (this can be changed with the PORT environment variable).

To run using a docker container (uses local port 8000 to expose default port 3000 so you can bring up a web browser to http://localhost:8000/):

docker run -d --name responsive-photo-gallery -v '/path/to/album/folders:/images:ro' -v '/your/persistent/storage/dir:/data:rw' -p 8000:3000 jwater7/responsive-photo-gallery

To run as node module:

npm install
cd frontend
npm install
cd ..
npm run build-frontend
npm start

The backend may be customized using environment variables:

The frontend may be customized using these environment variables: