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 prettier
Run lint
npm run lint
Run tests
npm run test
Start the dev server
npm run watch
Build the project
npm run build
Run the application
npm run start
Clone the project
git clone https://github.com/marvin-splitt/storefront-backend.git
Go to the project directory
cd storefront-backend/
Install dependencies
npm install
Set 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 up
Start the docker postgres container
docker-compose up -d
Start the dev server
npm run watch
Application will run on port 3000
To run tests, run the following command
npm run test
Marvin Splitt (@marvin-splitt)