This project showcases a dashboard for a local neighborhood library. For the purposes of keeping track of books and trends in borrowing, the dashboard shows:
- which books are available,
- which are currently out,
- and other general statistics about books and library account owners.
The Local Library dashboard has three main components:
-
General statistics such as the:
- total books owned by the library,
"
books currently borrowed,"
accounts registered with the library,- and the top 5 books by
Genre
,Book
, andAuthor
.
These statistics are are produced in /public/src/home.js
-
The returned status of a book, as well as details about the book such as:
- the book author,
- it's genre,
- and list of the ten most recent borrowers, with their returned status.
These details are produced in /public/src/books.js.
-
Finally, a listing of accounts subscribed to the library and per account details. Notably:
- the name of the account owner,
- a company name,
- their email address,
- when the account was created,
- the amount of time the account owner borrowed a book,
- and the current book checked out by the account owner.
These details are produced in /public/src/accounts.js.
Installing the library dashboard requires the following to be done:
Step 1: once the requirements are met, navigate to the cloned repository folder and run the following, which should pull all necessary node_modules
needed to run the webserver and run the code / display pages:
npm install
Step 2: if the node modules install completes without error, you can start the webserver like this:
npm start
This will launch a forground process in your shell wich you can kill with ctrl-c
, or other means.