## Description [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository. ## Project setup #### 1. Install all dependencies ```bash $ npm install ``` #### 2. Initialize database - Download and install `postgreSQL`. - Create schema name `pbl6` or whatever. #### 3. Create .env file - Copy from `.env.example` and fill ## Compile and run the project ```bash # development $ npm run start # watch mode $ npm run start:dev ``` ## In product: ## Notice ```bash # generate migrations $ npm run db:migrate:generate src/migrations/NameOfMigrations # update database follow migrations $ npm run db:migrate:up # down database follow migrations $ npm run db:migrate:down # Generate resource (include module, controller, service) and moving them to modules $ npx nest g resource modules/ ```