This is built on the shoulder of
- NodeJs, NestJs (https://nestjs.com/)
- TypeScript
- TypeORM (https://typeorm.io/)
- MySQL
For ease of local development a docker configuration is set up. For first time set up:
-
Set up docker in your pc if not installed(https://www.docker.com/products/docker-desktop)
-
Create .env file in root directory and put appropriate values in it
-
Install and build the project
// Set up docker in your pc if not installed
$ npm install
$ docker network create store
$ docker-compose build
$ docker-compose up
- On another terminal run the following command:
$ docker-compose exec store_app npm run db:migrate
Your app should run in 3001
port locally (localhost:3001)
$ docker-compose exec a
// Generates a new migration
$ npm run db:generate <MigrationName>
// Run db migration
$ npm run db:migrate
// Reverts to previous migration
$ npm run db:revert
// Runs seed
$ npm run db:seed:run