project use node js and express to create store api.
app run on Port 3000 host localhost
all endpoints and schema described in REQUIREMENT.md file,
- 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- Start app run at route http://localhost:${port}
npm run start - Database Port 5432
- create database for dev mode (store_db_dev) using Postgres after create run script
npm run migration:runto run migrate . - create database for test mode (store_db_test) using Postgres.
- create .env file in app root and copy data from .env.example file to .env file and update '###' with your environment data.