This app is the React MyReads Project of Udacity React Nanodegree.
- Clone project
git clone git@github.com:iamthuypham/Udacity_Book_Tracking.git
- Install
npm install
- Launch
npm start
- Starter Code for the React MyReads - Udacity MyReads Project Starter Code
- Create React App
- React Transition Group - Animation
- CSS Star Rating - Rating CSS
- Users can view 3 shelves of books: Currently Reading, Want to read, and Read.
- Users can move a book from one shelf to another. Books are updated immediately.
- Users can click on "+" button to navigate to
/search
page - Users can click on Back app or Back broswer button to navigate to
/
main page with updated books - Users can search different books by title, author, or search terms
└── [BooksApp](App.js)
├── <Route path="/">
│ └── <ListBooks>
│ └── <ShelfListBooks>
│ └── <CSSTransitionGroup>
│ └── [Book]
└── <Route "/search">
└── <SearchBooks>
└── <CSSTransitionGroup>
└── [Book]
├── public/
│ ├── index.html
│ └── favicon.ico
├── src/
│ ├── icons/
│ │ ├── add.svg
│ │ ├── books.jpg
│ │ ├── arrow-back.svg
│ │ └── arrow-drop-down.svg
│ ├── App.js
│ ├── App.css
│ ├── App.test.js
│ ├── BooksAPI.js
│ ├── Books.js - Single book component
│ ├── index.js
│ └── index.css
├── .gitignore
├── README.md
├── SEARCH_TERMS.md
└── package.json
The provided file BooksAPI.js
contains these methods:
- 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 your app.
- 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
- query:
<String>
- maxResults:
<Integer>
Due to the nature of the backend server, search results are capped at 20, even if this is set higher. - Returns a Promise which resolves to a JSON object containing a collection of book objects.
- These books do not know which shelf they are on. They are raw results only. You'll need to make sure that books have the correct state while on the search page.
The backend API uses a fixed set of cached search results and is limited to a particular set of search terms, which can be found in SEARCH_TERMS.md. That list of terms are the only terms that will work with the backend, so don't be surprised if your searches for Basket Weaving or Bubble Wrap don't come back with any results.