madoos / blog-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version Build Status Dependency Status Coverage percentage

blog-api

Api for madoos-blog using clean architecture.

Architecture Overview

This project's architecture is based on Uncle Bob's The Clean Architecture. Please at least skim through his blog as you will have a better understanding of how it works.

We are separated this application into 4 different layers

  1. Domains (highest)
  2. Use cases
  3. adapters
  4. Infrastructure (lowest)

The gist of it is a separation of concerns. Outer layer (lower) can reference (or know) the inner (highest) layer, however, the inner layers can not know about outer layer. We accomplished this by using Dependency Injection and Duck Typing since Javascript doesn't have the concept of Interface.

(highest)                                    (lowest, most detail implementation)
domains ---> user cases ---> interfaces ---> infrastructure

Run server dev

  • npm install
  • npm run dev

Run server pro

  • npm install
  • npm run build
  • npm start

License

MIT © Maurice Domínguez

About

License:MIT License


Languages

Language:JavaScript 89.2%Language:Shell 10.8%