Assignment 1-Library
Assignment 1-Library
Modification, distribution or reposting of this document is strictly prohibited. Learners found reposting this
document or its solution anywhere will be subject to the college’s Academic Integrity policy.
Assignment 1
Submission Checklist
For your submission to be graded, you must provide a zip file of your project, and a screen recording
demonstrating the functionality you implemented.
Academic Integrity
1
This assessment contains materials that may be subject to copyright and other intellectual property rights.
Modification, distribution or reposting of this document is strictly prohibited. Learners found reposting this
document or its solution anywhere will be subject to the college’s Academic Integrity policy.
Problem Description
Using Node, Express, and Handlebars, create a full stack website that enables a user to search for books
in a library.
3. Use the expected output as an example for what the user interface of your application should look like.
5. You should customize colors, typography, and spacing to match your own design aesthetic. Use
reasonably pretty colors and non-default fonts.
Data Modeling
1. The books in the library must be modeled with an array of Javascript object literals. The array
should be implemented as a global const variable in your server.js file.
4. You must provide a minimum of eight (8) books of varying titles, authors, prices, and availability.
Use meaningful values for the title, author, and price.
2
This assessment contains materials that may be subject to copyright and other intellectual property rights.
Modification, distribution or reposting of this document is strictly prohibited. Learners found reposting this
document or its solution anywhere will be subject to the college’s Academic Integrity policy.
Website Pages
Page Layouts
1. Header section: displays the library name and website navigation menu
a. Clicking on the library name will navigate the user to the “Home Page”.
b. The navigation menu has two links: Books, Branches, Contact Us
● Clicking on Books navigates to the “All Books” page
● Clicking on Branches and Contact Us does not do anything.
Home Page
The main content of the Home Page shows information about new books in the library.
Provide a link called “Get Started”. Clicking the link navigates the user to the “Books” page.
3
This assessment contains materials that may be subject to copyright and other intellectual property rights.
Modification, distribution or reposting of this document is strictly prohibited. Learners found reposting this
document or its solution anywhere will be subject to the college’s Academic Integrity policy.
1. By default, this page displays a list of books in the library. Fo reach book, display:
● Book title
● Book author
● Availability status
Book that is checked out by user Book that is not available Book that is available
4
This assessment contains materials that may be subject to copyright and other intellectual property rights.
Modification, distribution or reposting of this document is strictly prohibited. Learners found reposting this
document or its solution anywhere will be subject to the college’s Academic Integrity policy.
4. Filtering Results
● The list of displayed books can be filtered one of three ways:
a. Show All Books: Reloads the page to show all books in the library
b. Show Available Books: Reloads the page to show only books that are available for
borrowing
c. Show My Books: Reloads the page to show books checked out by the user. If the user
does not have any books checked out, display appropriate message in Error Page
5. Borrowing a Book
● If a book is available for borrowing, then clicking on the Borrow button will update the book status
to indicate that it is checked out by the current user.
Error Page
If the user performs an operation that results in an error, an error page should be displayed.
Pressing the GO BACK button returns the user to the website home page.
END OF ASSESSMENT