Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, GraphQL, Mercurius, etc. for the NestJS community 😻
This repository was created with the aim of helping developers who use NestJS or who use it for the first time to have examples (even simple ones) from which to take inspiration for their applications.
$ pnpm install
$ npx nx serve [name-app] # for example: npx nx serve nestjs-api-sequelize
or
$ nx serve [name-app] # for example: npx nx serve nestjs-api-sequelize
$ npx nx affected:test
or
$ nx affected:test
$ npx nx affected:e2e
or
$ nx affected:e2e
Run npx nx g @nx/nest:app my-app
to generate an application.
You can use any of the plugins above to generate applications as well.
When using Nx, you can create multiple applications and libraries in the same workspace.
Run npx nx g @nx/nest:lib my-lib
to generate a library.
You can also use any of the plugins above to generate libraries as well.
Libraries are shareable across libraries and applications. They can be imported from @nestjs-collections-apps/mylib
.
Run npx nx serve my-app
for a dev server. Navigate to http://localhost:3000/. The app will automatically reload if you change any of the source files.
Run npx nx build my-app
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.