OptimusKrish / sampleNodeApp

Sample application for beginners to understand nodejs with mongodb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sampleNodeApp

Sample application for beginners to understand nodejs with mongodb

Prerequisite:
Kindly install these two softwares in your system

  1. [Nodejs] (https://nodejs.org/en/download/)
  2. [Mongodb] (https://www.mongodb.com/download-center#community)

Steps to run the app:

  1. Clone the project
  2. Run npm install
  3. Run the mongo server with http://127.0.0.1 and port number 27071
  4. Use mongodb --dbpath <mongodb installed path>
  5. Create a database 'tryout'
  6. Then create three tables namely 'basicInfo', 'profInfo', 'otherInfo'
  7. Fill up the tables with necessary values by going through the routes/myRoutes.js file
  8. Each tables must have 'id' as unique value so that nodejs can check and return the proper response back from mongodb

Note:
This project is a very basic one tested in vagrant (virtual machine) with linux operating system. This will help you understand the concepts of routing, DB connection used in nodejs. Also helps you understand the basic commands used in mongodb.

About

Sample application for beginners to understand nodejs with mongodb


Languages

Language:JavaScript 100.0%