done
Installation
There are two ways to install dependencies and run this application:
Using Docker (recommended)
At the root of this project, run the following command:
docker-compose up
Manual
-
Install MongoDB
-
Install Redis
-
Add a
.env
at the root of the project with the following content:REDIS_URL=redis://localhost:6379 ORDER_MONGODB_URL=mongodb://localhost/order
-
Install dependencies of project:
yarn
-
Run the following command to start the order service:
yarn start:order:dev
-
In another terminal, run the following command to start the payment service:
yarn start:payment:dev
API
Once you start the server, you can access the Swagger UI at localhost:3000/api
You can get the Swagger JSON file at /api-json
.