Skip to content

Developed API using ExpressJS, testing using SuperTest and mocha framework.

Notifications You must be signed in to change notification settings

sadabnepal/expressJs-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressJS API Framework

Requirements:

NodeJs VSCode

Getting Started:

Clone Repository

1. git clone https://github.com/sadabnepal/expressJs-framework.git
2. Navigate to `expressJs-framework`

Install the dependencies:

npm install

API Details

BaseURL: http://localhost:5000
GET: /users
POST: /users (with payload)
PATCH: /users/:id (with payload)
DELETE: /users/:id

Start server:

npm run devStart [ only for developement ]
npm start

Run tests:

npm test

Folder structure

├───src
|    ├───app
|    |    ├───controllers
|    |    ├───routes
|    |    └───index.js
|    ├───helper
|    ├───static
|    └───tests
|         ├───config
|         ├───payload
|         └───specs
├───.env
├───.gitignore
├───index.js
├───package-lock.json
├───package.json
└───README.md

Test report

image

Releases

No releases published

Packages

No packages published