Skip to content

How to connect Mongoose (MongoDB) to a node handlebars project

Notifications You must be signed in to change notification settings

codrkai/node_handlebars_mongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node with Express Handlebars and MongoDB database connection

** Please note that this project uses the "hbs" library and not the "express-handlebars" library **

This tutorial will help you set up a mongoose database for your node js project. You can sign up for free at mongodb.com to use their free clusters for testing.

Here's what will be covered in this tutorial:

  • Setting up MongoDB: Cluster, Database Access, Creating Document tables
  • Setting up the Schemas in our NodeJS project
  • Connecting to the database in NodeJS to pull data to display on our webpage, and saving data to our database using a form from the homepage.
  • Remember to set up your MongoDB Node database like my Schemas or this project will not run *

Install node either by going to nodejs.org or homebrew

After downloading this project, remember to install the dependencies by typing:

npm install

To run the webserver:

npm start

About

How to connect Mongoose (MongoDB) to a node handlebars project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published