Example to exercise clean architecture with different databases + cache layer + DDD.
blog post about the project -> https://medium.com/nestjs-ninja/mastering-nestjs-unleashing-the-power-of-clean-architecture-and-ddd-in-e-commerce-development-97850131fd87
- To use the full project, you will need to have a Stripe dev account;
- Mongo or Postgres dabatase;
- Instal the dependecies
- copy .env.example to .env'
- run
docker-compose up -d
, it will create a Mongo instance - run
yarn start:dev
- Access
http://localhost:3000/api
The default database is set Mongo, but it can be changed inside app.module.ts
Running the solution, access http://localhost:3000/api
- Product
- User
- Order
- Add Mongo
- Add Postgres
- Add way to switch database easly
- Cache layer
- A few Unit tests
- A few e2e tests
- Stripe integration