ahmetfturgut / nodejs-assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project src structure directories.

src/
├─ config/
│  ├─ config.js
├─ controller.js
│  ├─ controller.index.js
│  ├─ recordController.js
├─ loader/
│  ├─ express.js
│  ├─ mongoose.js
│  ├─ server.js
├─ middlewares/
│  ├─ apiResponse.js
│  ├─ middlewares.index.js
│  ├─ validator.js
├─ model/ 
│  ├─ record.js 
├─ repository/ 
│  ├─ recordRepository.js 
│  ├─ repository.index.js
├─ routes/
│  ├─ routes.index.js
│  ├─ routes.js
│  ├─ recordRoute.js
├─ service/
│  ├─ recordService.js
│  ├─ service.index.js
├─ utils/
│  ├─ pick.js
│  ├─ requestUtil.js
│  ├─ utils.index.js
├─ validations/
│  ├─ validations.index.js
│  ├─ record.validation.js
test/
├─ test.js
└─integtarion
    └─ recordController.test.js
└─utils
    └─ setupTestDBAndConnection.js

Installation

Clone the repo:

git clone https://github.com/ahmetfturgut/nodejs-assignment.git
cd nodejs-assignment

Install the dependencies:

npm install

Commands

Running locally:

npm run start

Test

# run all tests with Mocha
npm run test
 

About


Languages

Language:JavaScript 96.2%Language:Shell 3.8%