Create and export a new javascript file

Assignment Help Programming Languages
Reference no: EM133189084

Create a new MongoDB Atlas account on

• Create your own MongoDB database under your MongoDB Atlas account
• Set up a books collection (table) by populating it with a minimum of 15 documents (records) that are in the following format:
• The new MongoDB books collection replaces the books.json file used by assignment two
• Changing the layout and structure of books collection is prohibited

• Set up a clients collection (table) by populating it with a minimum of 5 documents (records) matching the users in the users.json file in the following format:
• Changing the layout and structure of clients collection is prohibited
Landing Webpage

• Remain unchanged

Sign in Webpage

• Remain unchanged

Home Webpage

• The container situated to the left of the webpage and its functionality is to remain unchanged
• The container situated to the right of the webpage is to be populated by
- The email address of the signed in user
- The content of books collection with the title of all books borrowed by the signed in user and corresponding checkbox elements
- A button with Return as its caption
• The available property for each book in the books collection is to be updated per Borrow/Return button selection
• The IDBooksBorrowed property for each client is to be updated per Borrow/Return button selection with borrowed book IDs
• The same book cannot be borrowed at the same time by multiple clients
• The remaining functionality is to remain unchanged

Modifying the Web Server Program Structure

• Utilize the Express Router middleware to isolate a minimum of one business functionalities (e.g. login, borrow, return etc.) of your web server program by
o Create and export a new JavaScript file that is to specifically handle the chosen functionality
o Import the new JavaScript file to your web server program and utilize accordingly
• The remaining design criteria are to be decided by the web app designer

Technical Specifications

• Code one JavaScript server application using Node.js for routing, Express.js for framework and Handlebars.js for templating
• Necessary npm modules are: express, express-handlebars, mongodb and/or mongoose, fs, path, randomstring and client-sessions
• If the session was left inactive for more than three minutes, the session is to be automatically terminated and return to the Sign in page

Assignment Requirements

• Hand in your assignment by date specified on the weekly schedule in media specified in the course overview
• The completed assignment is to include at least twojs file, three hbs files, one package.json file, one users.json file, your assignment URL and necessary image files all compressed into one zip file
• Do not include your node_modules subfolder as part of your zip file
• Single Page Application (SPA) development is prohibited
• Usage of front-end framework such as React, Vue, Angular are prohibited
• Your assignment is to be submitted via Blackboard
• Ensure your assignment can be successfully tested via localhost:3000
• Deploy your assignment to your Heroku account
• Ensure your assignment can be successfully tested via your Heroku URL

Attachment:- Question MongoDB.rar

Reference no: EM133189084

Questions Cloud

What is the company''s days in inventory for year three : Question - The Mullens Company reported the following: What is the company's days in inventory for Year 3
What is its current ratio after the transaction is recorded : If the company purchased $600 of equipment, what is its current ratio after the transaction is recorded
What is the balance in the treasury stock account : Assuming that the company uses the cost method, what is the balance in the treasury stock account if the company recently reissued 10,000 shares
Calculate the amount of bond discount or premium : The bonds which were issued at 99, pay interest on January 1 and June 1. Use this information to calculate the amount of bond discount or premium
Create and export a new javascript file : Express Router middleware to isolate a minimum of one business functionalities (e.g. login, borrow, return etc.) of your web server program
Determine for december the amount of earnings per share : The Common Stock account for Baltimore Corporation on January 1, 2020 was $75,000. Determine for December the amount of Earnings per Share
Determine the total materials variance : The company actually produced 5,200 sleeping bags using 27,300 yards of material at a cost of $5.90 per yard. Determine the total materials variance
What is the loan rate charged by american pharoah : American Pharoah management is planning to make a $2.0 million loan to a French firm. What is the loan rate charged by American Pharoah
Determine the present value index for each proposal : Determine the present value index for each proposal. If Montana Grill can fund only one location, which location should be funded

Reviews

len3189084

8/5/2022 3:41:06 AM

when i am connecting this to mongodb cloud like this code I can''t borrow and return books normally, and I can''t separate the borrowing and returning of each user. For example, I hope that after user a borrows a book, user b cannot borrow it, and the book is in user a''s borrowing list. But it can''t, and it can''t borrow and return books normally. I hope to be able to make up this final step .

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd