Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 995 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 995 Bytes

About Node SOLID

This repository is about proof of concept (POC) in these conditions.

  1. How to write code in node.js structure with testable
  2. SOLID
  3. Controller, Service, Repository and Model are Single Responsibility.
  4. Testable in Service file.

more detail about solid : https://en.wikipedia.org/wiki/SOLID

System Requirement

  • Node.js version 8.10 or upper
  • NPM or YARN for Dependencies Management
  • MySQL or MariaDB

Installation

  1. Clone this project with https://github.com/imgrbs/Node-SOLID
  2. Copy .env.example to .env
  3. Edit configuration in .env file
  4. If you want to running server, Create Database and import node_solid.sql to your database
  5. Run npm install or yarn install to get dependencies of project

Run !

  1. Test with jest by using command npm run test or yarn test
  2. Running Server by using command npm run start or yarn start
  3. You can see an example data at http://localhost:3001/products

Contributing

@imgrbs