npm run server
to start the API servernpm start
to start the static assets dev server (builds client-side assets on change)- http://localhost:3000/
npm run build
to compile client-side assetsnpm run server prod
to start API server + static asset serving- http://localhost:8001/
server/config.js
has the URL to the MongoDB instance. By default, it'll use a locally running Mongo instance.
Run node util/loadDB.js
to load images into the database. The images MUST reside in the images
directory. The script will save a snapshot of the images folder, so running the script after editing or adding new images will only load those changes to the database. Note, removing images locally will NOT remove them from the database even after running the script.