WIP Nestjs template with Typescript, TypeORM, GraphQL, Apollo and OpenAPI Swagger.
/api
/graphql
- Do model change in entity.ts and use migration to push changes to db
- Update .graphql and run yarn type to update types
- Schema first as decorator for type-graphql does not play well with TypeORM atm
- Possible alternative: Prisma
yarn migration:generate -- -n NameOfMigration
yarn migration:run
yarn migration:revert
yarn migration:push // TODO - env config for what env push is going to
$ yarn
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov