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: 4 months 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T13:20:07.000Z (9 months ago)
- Last Synced: 2025-01-21T10:50:51.866Z (5 months 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:
[](https://nodejs.org/en/download/)
[](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
