0% found this document useful (0 votes)
44 views3 pages

Assignment 2 New

1. The document describes an assignment to create a MongoDB database with a Product collection containing different product documents, including an audio album and movie. 2. It also involves making an AJAX client page to search for a person's name in a defined array, and an AngularJS page to display and sort a list of names and phone numbers. 3. The main part of the assignment is to develop a dynamic website integrating AngularJS and Node.js, including creating a MongoDB to store user login data, developing an AngularJS login client, and a Node.js server to authenticate users and return user details.

Uploaded by

Iffat khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views3 pages

Assignment 2 New

1. The document describes an assignment to create a MongoDB database with a Product collection containing different product documents, including an audio album and movie. 2. It also involves making an AJAX client page to search for a person's name in a defined array, and an AngularJS page to display and sort a list of names and phone numbers. 3. The main part of the assignment is to develop a dynamic website integrating AngularJS and Node.js, including creating a MongoDB to store user login data, developing an AngularJS login client, and a Node.js server to authenticate users and return user details.

Uploaded by

Iffat khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment 2

Make sure your system has the MongoDB installed. Run that service, and perform the following:
. Create a new collection named Product. The Product catalog must have the capacity to store
many different types of objects with different sets of attributes.
. Now add different documents to the product collection:
○ Example 1: Audio album
{ type: "Audio Album", title: "A Love Supreme", description: "by John Coltrane",
shipping: { weight: 6, dimensions: { width: 10, height: 10, depth: 1 }, }, pricing: { list:
1200, retail: 1100, savings: 100, pct_savings: 8 }, details: { title: "A Love Supreme
[Original Recording Reissued]", artist: "John Coltrane", genre: [ "Jazz", "General" ],
tracks: [ "A Love Supreme Part I: Acknowledgement", "A Love Supreme Part II -
Resolution", "A Love Supreme, Part III: Pursuance", "A Love Supreme, Part IV-
Psalm" ], }, }
○ Example 2: A movie item would have the same fields for general product information,
shipping, and pricing, but have different sub-document details.
{ type: "Film", ..., shipping: { ... }, pricing: { ... }, details: { title: "The Matrix", director:
[ "Andy Wachowski", "Larry Wachowski" ], writer: [ "Andy Wachowski", "Larry
Wachowski" ], ..., aspect_ratio: "1.66:1" }, }
.
4
. Make four different documents in the collection.
3
Deliverable: Create a Word document containing screen shots of the commands and the outputs.

Make an AJAX client (HTML) page to take a user input of the person’s name. If the name is found in
the defined array on the server-side, display the details of the person on the Web page. If the name
is not found, a related message should be displayed.
Deliverable: The HTML file and PHP file saved to a folder. You need to include the test exhibits (i.e.,
some screenshots showing the outputs of the Web page) as a proof. You may place all screenshots
in one doc/pdf) in your submission. 

Make a Web page having AngularJS script to display the list of names and phone numbers on the
screen. The names must be sorted alphabetically.
Deliverable: The HTML file and AngularJS script file saved to a folder. You need to include the test
exhibits (i.e., some screenshots showing the outputs of the Web page) as a proof. You may place all
screenshots in one doc/pdf) in your submission. 
2
1
Develop a dynamic website to integrate an AngularJS client with the Node.js server that reads the
data from the MongoDB database.
Part 1
Develop the MongoDB database to store documents for different users who may login to the
system.
Create a Word document containing your code, test data, and screen shots.
Part 2
Develop the client-side in AngularJS to allow a user to enter a login name and password that is
transferred to the Node.js server.
Create a Word document containing your code, test data, and screen shots.
Part 3
If the user name and password match the information stored in the MongoDB database, Node.js
should take this information from the client and display all the user’s details from the database.
If the user name is new, allow the user to create a new record consisting of a user name and
password, and store this record in the collection.
If the user name matches but the password does not, an error message should display.
Document your work by saving your code and screen shots in your Word document.
Part 4
Develop a simple dynamic website to integrate the above concepts. Document your work by saving
your code and screen shots in your Word document. 
(Note: "Part 1 to 3" belongs to one of the features offered by a website. Part 4 requires you to
create a "simple dynamic website" that contains that feature. Since it is a “simple” website, you can
add a page or two, then include that feature in one of the pages. )
Part 5
At the end of all the coding, write about the problems and difficulties you faced in completing this
assignment. Also, state the way you overcame these problems. Save this in your Word document.
Deliverables
Part 1: Code, test data, and screen 10%
shots saved in a Word document
Part 2: Code, test data, and screen 10%
shots saved in a Word document
Part 3: Code and screen shots 25%
saved in a Word document
Part 4: Completed, fully-executed 40%
website with code and screen shots
saved in a Word document
Part 5: Your write-up listing the 15%
problems you faced and how you
overcame them

You might also like