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
.
├── app.js // App and Entry Point
├── /config/database.js // MongoDB Connection
├── /controllers/ // Controllers
├── /helpers/ // Helper code
├── /models/ // DB Models
│ └── Wolf.js // Schema
├── /routes/ // DB Models
│ └── wolves.js // Routes
├── /services/ // Services
├── /test/ // Tests
├── /node_modules/ // Project Dependencies[pm modules]
├── package.json
└── yarn.lock
docker-compose up --build
This will watch for changes and restart
docker-compose exec nodejs sh
GET
POST
Made with ♥ by Healert team