NestJS materials

Write an awesome doc for NestJS tips, tricks, notes, things which are not in the doc (or are but not really obvious) and experimented to figure them out and use them.

View on GitHub

Complex Reservation

In this project we will write E2E tests, automating our tests and unit tests. To learn more about tests. Learn more about testing here.

A reservation booking system that has the following features and each feature has its own database if it needs (exposing their port are just for you to connect to them with mongo-compass on your local system. But our code is utilizing docker internal networking system to connect and find the appropriate database instance in our compose stack):

Topics that can be considered for further discussion

Learn more

Start the app in dev env

  1. pnpm i --frozen-lockfile
  2. Copy .env.example files and create .env files.
  3. pnpm compose:up.
  4. pnpm start.

Run tests

For tests read this doc.

Run e2e tests

  1. cp .env.example .env
  2. pnpm i --frozen-lockfile
  3. ./run-e2e.sh add --build flag if you need to rebuild your stack.

Run unit tests

  1. pnpm i --frozen-lockfile
  2. pnpm test

Update 3rd-party libs

pnpm up --latest

Tech stack

Services

Libs

Common libraries that we’ll use in different microservices.