hapi-project-template
v1.9.0
Published
Node.js Hapi project template with MongoDB integration
Downloads
5
Readme
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 `
Documentation
http://localhost:3000/documentation