Project rubric- https://review.udacity.com/#!/rubrics/918/view
A MyRead Book-Tracking app that allows client to select and gives the category books as you have read, currently reading, and wantToread. I also create a serch bar for searching the books and select option to move the books in selected category The project build by using React and I used provided API server and client library.
- install dependencies with
npm install
oryarn install
- start with
npm start
oryarn start
To simplify my development process, I have a backend server for develop this project. The file BooksAPI.js
contains the methods I used to perform necessary operations on the backend:
Method Signature:
getAll();
- Returns a Promise which resolves to a JSON object containing a collection of book objects.
- This collection represents the books currently in the bookshelves in my app.
Method Signature:
update(book, shelf);
- book:
<Object>
containing at minimum anid
attribute - shelf:
<String>
contains one of ["wantToRead", "currentlyReading", "read"] - Returns a Promise which resolves to a JSON object containing the response data of the POST request
Method Signature:
search(query);
- query:
<String>
- Returns a Promise which resolves to a JSON object containing a collection of a maximum of 20 book objects.
- These books do not know which shelf they are on. They are raw results only. I used to make sure that books have the correct state while on the search page.
This project was bootstrapped with Create React App. You can find more information on how to perform common tasks here.