Skip to content

mrviniciux/nestjs-ddd-api

Repository files navigation

nestjs-api-template

A template for backend api's using NestJS

DDD

Domain-driven design (DDD) is a major software design approach

DDD is against the idea of having a single unified model; instead it divides a large system into bounded contexts, each of which have their own model.

image

Requirements

  • Mysql >= 9
  • Node >= 16

Integrations and libs

  • MySQL
  • NestJS
  • Passport JWT
  • Sequelize
  • Typescript
  • Docker
  • Eslint
  • Prettier
  • Jest

Pre-existent endpoints and collections

Screen Shot 2024-11-15 at 21 02 29

You can import those collections into your postman on misc/ folder

Project setup

$ npm install

.env

generate a .env file from .env.example

run migrations and seeds

This project uses sequelize to ORM layer

execute the following commands to populate database

CREATE DATABASE ecommerce; make sure it's created before running migrations

npm run db:migrate

and finally

npm run db:seed

About

A template for backend api's using NestJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published