nestjs-example
nestjs-example copied to clipboard
NestJS example with GraphQL, schema stitching, schema reload, dataloader, RabbitMQ, Redis, Scalable Websocket and JWT authentication
NestJS-Example
- NestJS 9
- TypeORM 0.3
Dependencies
Installation
npm ci
Running the app
npm run start:dev
Repl
NODE_ENV=development npm run start:repl
https://docs.nestjs.com/recipes/repl
Databse
Create db
psql -U postgres
create database development_nestjs_example;
Create migration
NODE_ENV=development npm run db:migration:create
Run migration
NODE_ENV=development npm run db:migration:run
Sync schema
NODE_ENV=development npm run db:schema:sync