In this monorepo I used the best architecture concepts: Onion Architecture, DDD and Ports and Adapters.
Statements | Branches | Functions | Lines |
---|---|---|---|
- install dependencies
yarn install:dev
- up infra
yarn infra
- run migrations
yarn migration:run
-
auth
yarn start:auth
-
user
yarn start:user
-
cat
yarn start:cat
-
create
$ yarn migration-postgres:create
-
run
$ yarn migration-postgres:run
-
create
$ yarn migration-mongo:create
-
run
$ yarn migration-mongo:run
- run
$ yarn test
- coverage
$ yarn test:cov
- lint
$ yarn lint
- prettier
$ yarn prettier
usecase
apitest
docs
- I18n
- Docker
- Observability
- tracing
- logs
- metrics
- Lint-staged + Husky
- Commitlint
- Secrets Service
- HTTP Service
- Logger Service
- mongodb transport
- Authentication
- Login
- Logout
- Forgot Password
- Refresh Token
- Authorization
- Role-based access
- Endpoint Permissions
- Error Handler
- Libs Structure
- Dependency Inversion Pattern
- Usecase Pattern
- Interface Adapter Pattern
- Generic Repository Pattern
- Mongo Repository (mongoose)
- Postgres Repository (TypeORM)
- Swagger Documentation
- Cache Service
- Redis
- NodeCache
- Database
- mongo
- Migrations
- postgres
- Migrations
- mongo
- Tests
- unit
- 100% coverage
The following is a list of all the people that have contributed Nestjs monorepo boilerplate. Thanks for your contributions!
It is available under the MIT license. License