RancyChepchirchir / Storefront_Backend

- The second Udacity Project (FullStack-JScript)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storefront_Backend

Project Summary

Build a JavaScript API based on a requirements given by the stakeholders. You will architect the database, tables, and columns to fulfill the requirements. Create a RESTful API to be accessible to the frontend developer. You will also have written test, secured user information with encryption, and provide tokens for integration into the frontend.

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/AndrewGithinji/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

Image of tests passing

Author

Rancy Chepchirchir ((https://github.com/RancyChepchirchir))

About

- The second Udacity Project (FullStack-JScript)


Languages

Language:TypeScript 91.8%Language:JavaScript 8.2%