/nodejs-api-template

A base template to NodeJs API

Primary LanguageJavaScript

NodeJs API Template

docker Node.js npm

Tests


Structure folder tree:

.
├── src
│   ├── di                  # Container dependency injection definition
│   ├── domain              # Entities, UseCases and repositories interfaces
│   ├── infrastructure      # External access as Queue, Mail, Database repositories implementation
│   ├── webapi              # Express web api
│   └── main.js             # Entrypoint file
└── test                    # Test files
    └── ...

Running application:

NPM: npm run dev

or

Docker: docker-compose up -d


Running tests:

NPM: npm run test