Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/baralmanish/nodejs-demo
- Owner: baralmanish
- License: mit
- Created: 2019-04-26T16:36:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T17:30:53.000Z (8 months ago)
- Last Synced: 2024-06-05T19:51:38.230Z (8 months ago)
- Topics: demo, express-api, expressjs, node-api, node-boilerplate, node-demo, node-express, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.35 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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`