In the MyReads project, I created a bookshelf app that allows the user to select and categorize books they have read, are currently reading, or want to read. The project emphasizes using React to build the application and provides an API server and client library that I used to persist information as the user interacts with the application.
As a starting point, I was given a starter static template without any of the React code that was needed to complete the project. My job was be to add interactivity to the app by refactoring the static code in this template.
To run the project, download or clone the repository in your computer:
$ git clone https://github.com/troyrocket/nd0191-c1-myreads-app
and follow the instructions below.
In the repository folder:
-
install all project dependencies with
npm install
-
start the development server with
npm start
Please note that the backend server -against which the web app was developped- was provided by Udacity. The provided file BooksAPI.js
contains the methods I used to perform necessary operations on the backend:
getAll
update
search
For more information on how these methods are used exactly, please refer to the original Udacity repository.
In this application, the main page displays a list of "shelves" (i.e. categories), each of which contains a number of books. The three shelves are:
- Currently Reading
- Want to Read
- Read
Each book has a control that lets the user select the shelf for that book. When the user select a different shelf, the book moves there.
The search page has a text input field that may be used to find books. As the value of the text input changes, the books that match that query are displayed on the page, along with a control that lets the user add the book to their library.