ntxinh / nodejs-ddd

Nodejs DDD Architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run

  • Setup the database on config/database.js
  • npm i
  • Run the database migrations with npm run sequelize db:migrate
  • Add some seed data to the development database with npm run sequelize db:seed:all
  • Run the application in development mode with npm run dev
  • Access http://localhost:3000/api/docs

Scripts

  • dev: Run the application in development mode
  • start Run the application in production mode (prefer not to do that in development)
  • lint: Lint the codebase
  • sequelize: Alias to the Sequelize CLI
  • console: Open the built-in console, you can access the DI container through the container variable once it's open, the console is promise-friendly.
  • cleanup: Removes the files from the example application

Tech

Debug

nodemon

npm i -g nodemon
  • Start Debugging from vscode

Attach

npm run debug
  • Start Debugging from vscode

Attach by Process ID

npm run debug
  • Start Debugging from vscode

Launch Program

  • Start Debugging from vscode

Launch via NPM

  • Start Debugging from vscode

References

About

Nodejs DDD Architecture


Languages

Language:JavaScript 100.0%