Skip to content

Repo CRUD operations using NodeJS, ExpressJS and MongoDB

License

Notifications You must be signed in to change notification settings

maheshg23/Customer_Profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD operations using NodeJS, ExpressJS and MongoDB.

Create a web app that displays a single Collection(Table) from MongoDB as a Table in HTML using ExpressJS which is a NodeJS Node.js web application framework. We can then Insert, Modify and Delete records from the HTML page.

Installation

  1. Clone repo
  2. run npm install

Usage

  1. run npm run start
  2. Navigate to localhost:3000

MongoDb Commands.

Change Database
use <DatabaseName>

Show the existing collections
show tables

Insert the first record into the collections "customers".
db.customers.insert({ "name" : "user1", "email" : "user1@webapp.com", "phone": "1234567890"})

Display the contents of the Collection
db.customers.find().pretty()

Removing record from a collection
db.customers.remove({'name' :"user1"})



Reference - https://zellwk.com/blog/crud-express-mongodb/

About

Repo CRUD operations using NodeJS, ExpressJS and MongoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published