This project is part of the Udacity Full-Stack Javascript Nanodegree
It provides an express application serving several API endpoints for storing and accessing data, located in a postgres database. It serves routes for users, orders and products. It uses JWT Token for authorization.
Go to the REQUIREMENTS.md file for the API Endpoint reference and data shape documentation.
Run prettier
npm run prettierRun lint
npm run lintRun tests
npm run testStart the dev server
npm run watchBuild the project
npm run buildRun the application
npm run startClone the project
git clone https://github.com/marvin-splitt/storefront-backend.gitGo to the project directory
cd storefront-backend/Install dependencies
npm installSet up the .env file for connecting to the database and a working authorization. .env.example file is provided with needed keys
Run the migrations
db-migrate upStart the docker postgres container
docker-compose up -dStart the dev server
npm run watchApplication will run on port 3000
To run tests, run the following command
npm run testMarvin Splitt (@marvin-splitt)