Just for learning Nestjs for creating CRUD 💻
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Typescript ✅
- Typeform (ORM) ✅
- Postgres with Docker Compose ✅
- JWT 🔄
- Makesure postgresql is running with docker-compose, for checking you can open the connection database using database client like Dbeaver, tablesplus, whatever you have
- Create migration file with command
npx typeorm migration:create src/migrations/CreateUserTable
- After that, running migration with command
npx ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:run -d src/data-source.ts