lucaswilliameufrasio / clean-ts-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ForDev NodeJS

CI Action Status Coverage Status

4Dev Logo

This project was built following the training of Rodrigo Manguinho on Udemy and has the purpose of learning to build Web Services with NodeJS following best practices, applying SOLID, TDD, Design Patterns, Clean Architecture, DDD, and so on. We also added Swagger, Docker, and CI/CD with Travis, which I modified to run in Github Actions.

🖥 Requirements

Optional

  • Docker
  • Docker Compose

Clone the repository

$ git clone https://github.com/lucaswilliameufrasio/clean-ts-api.git

🔨 Configuration

  • Navigate to project's folder
$ cd clean-ts-api
  • Install dependencies
$ yarn install
  • Copy environment file:
$ cp .env.example .env

The .env file could be like the example below:

MONGO_URL=mongodb://localhost:27017/clean-node-api
PORT=7777
JWT_SECRET=IhTqDm7i1QzKd5k7Bf9CXbU3KZt1Kddgifn2MH5gff1xWjsB

📦 Usage

  • To run the app in development mode:
$ yarn build
$ yarn debug
$ yarn test:ci

About


Languages

Language:TypeScript 99.4%Language:JavaScript 0.6%Language:Shell 0.1%