https://github.com/chetanraj/hapijs-mongoose-restapi
a RESTful API using hapijs and mongoose
https://github.com/chetanraj/hapijs-mongoose-restapi
api flow hapijs hapijs-mongoose-restapi mongoose nodejs npm rest-api yarn
Last synced: 5 months ago
JSON representation
a RESTful API using hapijs and mongoose
- Host: GitHub
- URL: https://github.com/chetanraj/hapijs-mongoose-restapi
- Owner: chetanraj
- Created: 2016-12-30T13:17:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2026-01-10T03:14:28.000Z (6 months ago)
- Last Synced: 2026-01-11T00:53:40.107Z (6 months ago)
- Topics: api, flow, hapijs, hapijs-mongoose-restapi, mongoose, nodejs, npm, rest-api, yarn
- Language: JavaScript
- Size: 206 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hapijs-mongoose-restapi
This is a boilerplate for creating a RESTful API using hapi.js and mongoose. The code for creating the API has been explained in this [Medium Post](https://medium.com/jsessentials/build-a-restful-api-using-hapijs-and-mongoose-4903590c5663)
[](https://www.bithound.io/github/chetanraj/hapijs-mongoose-restapi/master/dependencies/npm) [](https://snyk.io/test/github/chetanraj/hapijs-mongoose-restapi) [](https://travis-ci.org/chetanraj/hapijs-mongoose-restapi) [](https://circleci.com/gh/chetanraj/hapijs-mongoose-restapi) [](https://github.com/sindresorhus/xo) [](https://coveralls.io/github/chetanraj/hapijs-mongoose-restapi?branch=master)
## Directory Layout
```bash
.
├── app.js // Express App and Entry Point
├── database.js // MongoDB Connection
├── /models/ // DB Models
│ └── Wolf.js // Schema
├── /node_modules/ // Project Dependencies[pm modules]
├── package.json
├── routes.js
└── yarn.lock
```
## Getting Started
```javascript
yarn
```
## To start the app
```javascript
npm start
```
### Routes
* http://localhost:4000
* http://localhost:4000/api
GET
* http://localhost:4000/api/wolves
POST
* http://localhost:4000/api/wolves/Coyote
---
Made with ♥ by Chetan