Start Application

// install dependencies
yarn

// if you don't have postgres installed, type the next command to install with docker:
docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5433:5432 -d -t postgres:12

// start postgres
docker start postgres

// run migrations (create the database before)
yarn typeorm migration:run

// if you don't have mongodb installed, type the next command to install with docker:
docker run --name mongodb -p 27017:27017 -d -t mongo

// start mongo
docker start mongodb

// if you don't have redis installed, type the next command to install with docker:
docker run --name redis -p 6379:6379 -d -t redis:alpine

// start mongo
docker start redis

// finally, start server
yarn dev:server

VSCode plugins required

  • Editor config
  • ESLint
  • Prettier
  • Material Icon Theme

Enable uuid_generate_v4 function on PostgreSQL

  create extension IF NOT EXISTS "uuid-ossp" schema pg_catalog version "1.1";

Folder icons - Paste the code below in your settings JSON on vscode

"material-icon-theme.folders.associations": {
  "infra": "app",
  "entities": "class",
  "schemas": "class",
  "typeorm": "database",
  "repositories": "mappings",
  "http": "container",
  "migrations": "tools",
  "modules": "components",
  "implementations": "core",
  "dtos": "typescript",
  "fake": "mock",
},

"material-icon-theme.files.associations": {
  "ormconfig.json": "database",
  "tsconfig.json": "tune"
}
```