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
Service
file.
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.example
to.env
- Edit configuration in
.env
file - If you want to running server, Create Database and import
node_solid.sql
to your database - Run
npm install
oryarn install
to get dependencies of project
- Test with jest by using command
npm run test
oryarn test
- Running Server by using command
npm run start
oryarn start
- You can see an example data at http://localhost:3001/products
@imgrbs