Lab Assignment:: 10 - GayathreeIyer/Advanced-Software-Engineering GitHub Wiki

Name: Gayathree Natarajan Iyer

UMKC ID: 16227784

Class ID: 20

Lab Assignment 10::


Question 1: Create REST services for CRUD operation in MongoDB. Use this REST services and create Web Application which should have following features: 1) User can sign up or login 2) After signup/login, in next page display all the users and details of user 3) Provide options for update or delete user data.


Answer:

--> Registration Page where user can enter his/her first name, second name, email-ID, Password.

Registration Page


--> Filled Registration page where user has given his/her details.

Filled Details


--> The details entered by user is reflected in MongoDB.

Entry in MongoDB


--> Similarly, if user enters different details many times, MongoDB will appear like this:

MongoDB with details


--> Now, if user clicks on Login, User will be navigated to the CRUD Page.

CRUD Page


--> User can see all the details present in the MongoDB if he clicks on 'View Your Details' button.

View Your Details


--> If user wants to delete a single entry from MongoDB, User can choose the ID corresponding to that entry in MongoDB.

Delete Entry


--> Successfully Deleted message.

Successfully Deleted message


--> Now, user will be able to see that entry deleted from MongoDB. Now there are only 2 entries. The 3rd entry has been deleted by the user.

Deleted from MongoDB


--> The next time, user clicks on 'View Your Details', user will see only the 2 entries and not the deleted entry.

View Your Details after deletion


--> Update can be done by mentioning the corresponding ID. Here, I have changed the email ID and Last name.

Update Details


--> Successfully registered after update operation.

Update successfull


--> Update reflected in MongoDB.

Update reflected in MongoDB


--> Update reflected in CRUD page after user clicks on 'View your Details'.

Update reflected in CRUD page


Question 2: Deploy your application on to Amazon instance and share the URL.


Answer:

--> Create Environment in AWS.

Create Environment


--> AWS Result.

AWS Output


--> AWS Link: https://us-west-2.console.aws.amazon.com/elasticbeanstalk/home?region=us-west-2#/environment/dashboard?applicationName=ASE_Lab10&environmentId=e-prkixtjd82

--> Environment ID: e-prkixtjd82, URL: aselab10.aqg2ns4z7j.us-west-2.elasticbeanstalk.com