Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:00:26.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T18:49:20.315Z (almost 2 years 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 ![Coverage Status](http://img.shields.io/coveralls/badges/badgerbadgerbadger.svg?style=flat-square)> 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
```