$ npm i -S
$ npm run watch:server
- node.js
- @hapi/hapi
- mongodb
Function name | Description |
---|---|
get() |
"/" |
post() |
"/post" |
get() |
"/pagination" |
app
├── config # Environment Specific Variables (local/dev/production)
│ └── config.js
│
├── controllers # Controllers (functions)
│ └── db.controllers.js
│
│
├── models # Models (usually database models)
│ └── models.schema.js
│
├── routes # Routing (Routing refers to how an application’s endpoints (URIs) respond to client requests)
│ └── index.router.js
│
├── .env # Env (The process.env property returns an object containing the user environment)
│
│
├── .gitignore # Gitignore (specifies intentionally untracked files to ignore)
│
├── package.json # Project Description & Dependencies
│
│
├── server.js # Index (your server starts here)
{
"isActive": true,
"age": 38,
"eyeColor": "green",
"company": "ZENTIME"
},
{
"isActive": false,
"age": 26,
"eyeColor": "brown",
"company": "EXOTERIC"
},
{
"isActive": false,
"age": 26,
"eyeColor": "green",
"company": "ZIPAK"
},
{
"isActive": true,
"age": 25,
"eyeColor": "brown",
"company": "REMOTION"
},
{
"isActive": false,
"age": 29,
"eyeColor": "brown",
"company": "COWTOWN"
},
{
"isActive": false,
"age": 22,
"eyeColor": "brown",
"company": "OVATION"
},
{
"isActive": true,
"age": 25,
"eyeColor": "green",
"company": "PHEAST"
},
{
"isActive": true,
"age": 23,
"eyeColor": "blue",
"company": "GRONK"
},
{
"isActive": false,
"age": 30,
"eyeColor": "green",
"company": "GEOLOGIX"
},
{
"isActive": true,
"age": 23,
"eyeColor": "brown",
"company": "RONELON"
},