/done

A monorepo created with NestJS

Primary LanguageTypeScript

done

Architecture Diagram

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
  1. Install MongoDB

  2. Install Redis

  3. Add a .env at the root of the project with the following content:

    REDIS_URL=redis://localhost:6379
    ORDER_MONGODB_URL=mongodb://localhost/order
    
  4. Install dependencies of project:

    yarn
  5. Run the following command to start the order service:

    yarn start:order:dev
  6. 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.