Skip to content

💻 Node API starter using typescript and implementing SOLID principles + clean architecture

Notifications You must be signed in to change notification settings

lucaspalencia/node-api-starter

Repository files navigation

Node API Starter

Node.js API starter using typescript implementing SOLID principles + Clean Architecture

Requirements

To run this project you need to have installed:

Setup

Prepare your development environment

Create a copy .env file from .env.example and populate the variables.

Install dependencies:

make install

Start application:

make up

View logs:

make logs

This command will boot:

  • Node API on http://localhost:3000 if PORT variable has not been set on .env file.
  • If variable has been set, will boot API on http://localhost:${PORT}

Commands

make install                  - install dependencies
make add lib=PACKAGE_NAME     - add dependency
make add-dev lib=PACKAGE_NAME - add dev dependency
make up                       - start app
make logs                     - view logs
make down                     - kill app
make lint                     - run lint
make test                     - run tests
make test-watch               - run tests on watch mode
make test-coverage            - run tests with coverage report on /coverage folder
make build                    - build app on /dist folder
make up-build                 - start built app
make shell                    - run app shell

Coding

Examples

About

💻 Node API starter using typescript and implementing SOLID principles + clean architecture

Resources

Stars

Watchers

Forks