Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sadabnepal/express-js-framework
- Owner: sadabnepal
- Created: 2022-01-04T17:00:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T13:20:07.000Z (3 months ago)
- Last Synced: 2024-11-20T15:53:16.362Z (about 1 month ago)
- Topics: api-development, api-testing, chai, dotenv, expressjs, mocha, mocha-chai, mochawesome, nodejs
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)