Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/baralmanish/nodejs-demo

Node JS and Express JS API Boilerplate
https://github.com/baralmanish/nodejs-demo

demo express-api expressjs node-api node-boilerplate node-demo node-express nodejs

Last synced: 2 months ago
JSON representation

Node JS and Express JS API Boilerplate

Awesome Lists containing this project

README

        

## APP Url
`http://localhost:8000/`

## API URLS
### All Employees
```javascript
// Request Method: GET
http://localhost:8000/api/employees
```

### Employee by ID
```
// Request Method: GET
http://localhost:8000/api/employee/id
```

### Employee by ID
```
// Request Method: POST
http://localhost:8000/api/employee/create
```

```json
// Body
{
"name": "John Doe",
"salary": 2000,
"age": 29
}
```
```json
// Response
{
"success": true,
"data": {
"name": "John Doe",
"salary": "20000",
"age": "20",
"id": "13681"
}
}
```

## Commands
- Install NPM Dependencies `~ yarn`

- Run APP
`~ yarn start`

- Run APP Development
`~ yarn dev`

- Test APP
`~ yarn test`