Skip to content

There are two web pages that are built. The first one is to take input from users and the details entered by the users should be saved in backend database. The second webpage is to get the details of an existing user based on email id entered by the user,

Notifications You must be signed in to change notification settings

abheet-98/Store-and-retrieve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to be followed:

1.The first step is to unzip the assignment.zip file.
2.After this open the assignment folder in any code editor like visual studio code or sublime.I have used visual studio code.
3.Change the url of the mongoose.connect command in acontroller.js file.I have used the mongodb atlas to host the database on cloud.
4.Now you are set to launch the app.
5.Open the terminal and type the command node app and press enter.
6.Terminal shows the message of listening to port 3000 and connection of the mongodb.
7.Open the browser and type the url http://localhost:3000/aa
8.Form is displayed.
9.Enter the values in the form as per the validation and press the Add item button.
10.The values are stored in the database.
11.Now type the url http://localhost:3000/bb in the browser and a form with single email id field is displayed.
12.Enter the email id and press the Search button.
13.The details of user is fetched from Database and is displayed on this page.\

Files:

1.app.js is the main entry file.
2.aa.ejs, bb.ejs, cc.ejs and dd.ejs are separate view files.
3.acontroller.js is the controller file which is used to handle the db connection and various routes.
4.aaschema.js is the file which defines the schema of the db.
5.aaa.js and bbb.js are the jquery files handling the form submission.\

This is the appropriate way of justifying the usage of Java Script.

About

There are two web pages that are built. The first one is to take input from users and the details entered by the users should be saved in backend database. The second webpage is to get the details of an existing user based on email id entered by the user,

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published