Alex succeed at dating boot camp

6854933580_2c8b688306_z

It will start the mongo shell on your machine, which allows you to run the Mongo DB statements.Now you need to create the new database by running this command:use hapi_db It will create the hapi_db in your Mongo DB database.You can see the output of the Mongo DB server below.I am going to use mongoose to interact with Mongo DB.

You also have to build a new model inside the model's folder I am going to choose the company.filename.(also known as hapi) is an open-source framework for web applications.The most common use of hapi is to build web services such as JSON API.I will use Mongoose ODM to connect hapi application to Mongo DB.You have to install mongoose package from the npm (Node Package Manager) repository.Mongoose allows you to define your native Mongo DB collection in Javascript object.

You must have an account to comment. Please register or login here!