Skip to content

A shop backend build with Node.JS as part of the Udacity Javascript Fullstack Nanodegree

License

Notifications You must be signed in to change notification settings

marvin-splitt/storefront-backend

Repository files navigation

Storefront Backend

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.

API Reference

Go to the REQUIREMENTS.md file for the API Endpoint reference and data shape documentation.

Scripts

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

Run Locally

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

Running Tests

To run tests, run the following command

  npm run test

Author

Marvin Splitt (@marvin-splitt)

About

A shop backend build with Node.JS as part of the Udacity Javascript Fullstack Nanodegree

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published