Node.js Hapi project template with MongoDB integration
- 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')
).
npm install
`
- Run: npm start
- Or: npm run dev `