Skip to content

azharomer/StorefrontBackEnd

Repository files navigation

Storefront backend Api

project use node js and express to create store api. app run on Port 3000 host localhost

EndPonints in app

all endpoints and schema described in REQUIREMENT.md file,

scripts in app

  • Install all dependencies
npm install
  • Run prettier
npm run prettier
  • Run lint
npm run lint
  • Fix lint issus
npm run lint:fix
  • Run build app
npm run build
  • Run test app (will run build and test)
npm run test
  • Run migration to add tables to database
npm run migration:run
  • Down migration tables
npm run migration:down
  • Reset migration tables
npm run migration:reset
npm run start 

DataBase

  • Database Port 5432
  • create database for dev mode (store_db_dev) using Postgres after create run script npm run migration:run to run migrate .
  • create database for test mode (store_db_test) using Postgres.

Environmental file

  • create .env file in app root and copy data from .env.example file to .env file and update '###' with your environment data.

About

sample store api using node js, express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published