This repository is about proof of concept (POC) in these conditions.
- How to write code in node.js structure with testable
- SOLID
- Controller, Service, Repository and Model are
Single Responsibility. - Testable in
Servicefile.
more detail about solid : https://en.wikipedia.org/wiki/SOLID
- Node.js version 8.10 or upper
- NPM or YARN for Dependencies Management
- MySQL or MariaDB
- Clone this project with
https://github.com/imgrbs/Node-SOLID - Copy
.env.exampleto.env - Edit configuration in
.envfile - If you want to running server, Create Database and import
node_solid.sqlto your database - Run
npm installoryarn installto get dependencies of project
- Test with jest by using command
npm run testoryarn test - Running Server by using command
npm run startoryarn start - You can see an example data at http://localhost:3001/products
@imgrbs