Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sadabnepal/express-js-framework

Developed API using ExpressJS, testing using SuperTest and mocha framework.
https://github.com/sadabnepal/express-js-framework

api-development api-testing chai dotenv expressjs mocha mocha-chai mochawesome nodejs

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

ExpressJS API Framework

### Requirements:
[![NodeJs](https://img.shields.io/badge/-NodeJS-grey?logo=node.js)](https://nodejs.org/en/download/)
[![VSCode](https://img.shields.io/badge/-Visual%20Studio%20Code-%233178C6?logo=visual-studio-code)](https://code.visualstudio.com/download)

### Getting Started:
Clone Repository
```bash
1. git clone https://github.com/sadabnepal/express-js-framework.git
2. Navigate to `express-js-framework`
```

Install the dependencies:
```bash
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](https://user-images.githubusercontent.com/65847528/148164798-04a901fe-576d-4aad-a9d0-fbbcf670b905.png)