A Node.js Swagger API Microservice example
This is an app that demonstrates how to use Nest.js to create a RESTful API microservice
- Event-sourcing
- CQRS
- Saga
- ...
$ npm
$ docker-compose
# development
## docker-compose => redis, mongodb, rabbit containers
$ docker-compose up -d
## apps
$ npm install --global cross-env
$ cd /services/service_name
$ npm install
$ npm run start
Swagger Explorer URL: http://localhost:3000/api
- Create/Cancel/Read an order
- Auto deliver orders after X secords
- pub/sub events by Order App
- write Event store and restore Read storage
- Handling concurrent updates using optimistic locking
- Using snapshots to improve performance
- ...