Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tony133/nestjs-apps-collection
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, MySQL, GraphQL, Mercurius, Apollo, etc. for the NestJS community 😻
https://github.com/tony133/nestjs-apps-collection
api api-rest docker graphql mercurius mongodb mongodb-driver nestjs nestjs-apollo nestjs-backend nestjs-graphql nestjs-mercurius node openapi pg postgresql sequelize swagger typeorm
Last synced: 1 day ago
JSON representation
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, MySQL, GraphQL, Mercurius, Apollo, etc. for the NestJS community 😻
- Host: GitHub
- URL: https://github.com/tony133/nestjs-apps-collection
- Owner: Tony133
- License: mit
- Created: 2020-08-17T17:02:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T09:28:13.000Z (7 months ago)
- Last Synced: 2024-05-22T12:05:49.196Z (7 months ago)
- Topics: api, api-rest, docker, graphql, mercurius, mongodb, mongodb-driver, nestjs, nestjs-apollo, nestjs-backend, nestjs-graphql, nestjs-mercurius, node, openapi, pg, postgresql, sequelize, swagger, typeorm
- Language: TypeScript
- Homepage:
- Size: 2.8 MB
- Stars: 292
- Watchers: 4
- Forks: 42
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nestjs-collections-apps
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, GraphQL, Mercurius, etc. for the NestJS community 😻
## Motivation
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.
## Install workspace
```
$ pnpm install
```## Running a sample app
```bash
$ npx nx serve [name-app] # for example: npx nx serve nestjs-api-sequelize
```or
```bash
$ nx serve [name-app] # for example: npx nx serve nestjs-api-sequelize
```## Running all unit tests
```bash
$ npx nx affected:test
```or
```bash
$ nx affected:test
```## Running all end-to-end tests
```bash
$ npx nx affected:e2e
```or
```bash
$ nx affected:e2e
```## Generate an application
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.
## Generate a library
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`.
## Development server
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.
## Build
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.
## License
[MIT licensed](LICENSE)