dmiseev / ddd-node-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skeleton for Node.js applications written in TypeScript

First deploy

  1. Start database container;
docker-compose up -d
  1. Copy ormconfig.example.json to ormconfig.json with your DB connection;
  2. Install dependencies;
npm i
  1. Install globally typeorm;
sudo npm i typeorm -g
  1. Compile .ts to .js files to ./bin/ folder;
npm run compile
  1. Up migrations;
typeorm migrations:run
  1. Run Application in dev mode.
npm run dev

Testing

  1. Execute command in cli;
npm run test:all

About


Languages

Language:TypeScript 100.0%