https://github.com/diglopes/clean-node-api
API built with NodeJS using clean architecture and Test Driven Development
https://github.com/diglopes/clean-node-api
Last synced: 4 months ago
JSON representation
API built with NodeJS using clean architecture and Test Driven Development
- Host: GitHub
- URL: https://github.com/diglopes/clean-node-api
- Owner: diglopes
- License: mit
- Created: 2019-12-11T14:08:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:00:26.000Z (over 2 years ago)
- Last Synced: 2025-01-21T14:14:26.222Z (6 months ago)
- Language: JavaScript
- Size: 2.67 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
# Clean Architecture API > API built with the wonderful Node.js
> Clean architecture was the god guide to this project
> Test Driven Development to not break everything all the time
## Technologies
Project is created with:
* mongoose
* jest
* express## Setup
> set a mongodb database on env file```
src
│
└───domain
└───infra
└───presentation
└───utils
└───main
│
└───config
│ env.js
```> install the dependencies
```shell
$ npm install
```> start the server
```shell
$ npm run start
```## Tests
> to start the unit tests```shell
$ npm run test:unit
```> to start the integration tests
```shell
$ npm run test:integration
```