This project is based on Nodejs and NoSQL. For Backend: Express, Frontend: EJS and Database: MongoDB are being used.
To get the Node server running:
-
Clone this repo
-
npm install
to install all required dependencies -
Install MongoDB Community Edition [instructions]
-
Create
.env
file in the project directory and add the credential for online mongodb server asMONGO_CREDENTIAL=username:password
and define the server url inapp.js
file onmongoose.connect
. For local database use the following code inapp.js
mongoose.connect('mongodb://localhost/cseprojects', { useMongoClient: true });```
-
npm install -g nodemon
for installing nodemon package globally. -
Finally run
nodemon
to start the server