1.9.0 • Published 6 years ago
hapi-project-template v1.9.0
Hapi project template
Node.js Hapi project template with MongoDB integration
Prepare for Database
- Run docker service
- Run: mongodb-start.sh to start local MongoDB server
- In a separate terminal window, run
mongo, the MongoDB client. - If this is the first time you set up a replica set, execute the command
rs.initiate(). - Create the database
databaseName(use databaseName) and the collectioncollectionName(db.createCollection('collectionName')).
Installation
npm install
Start project
`
- Run: npm start
- Or: npm run dev `