/node-rest-api-clean-architecture

Node.js Rest API (Express.js, MongoDB, and Clean Architecture)

Primary LanguageTypeScriptMIT LicenseMIT

node-rest-api-clean-architecture

This is a work in progress

Table of Content

  • Requirements
    • Node.js
    • MongoDB
    • Docker
    • Make
  • Running
  • Architecture
    • Overview
  • Docs
    • Swagger (api.yml)
  • Troubleshooting

Running

Install dependencies

yarn install

Execute docker containers through Make. This will install Docker image and make them interact each other via Docker Compose.

make dev

Check application logs on terminal

make logs

Stop all containers

make down

Database

Modeling - Denormalization

Motivation: Populate - Query conditions

Troubleshooting

  • Check express.js logs with make logs
  • Use postman (or something like this) for direct requests