Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


FVCproductions



# 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
```