This project was bootstrapped with Create React App.
- npm
- Node
- Create React App
- Git
- VSCode (Visual Studio Code)
Comands:
npm install
npm start
Then open http://localhost:3000/ to see your app.
To simplify the development process, Udacity provided a backend server to develop against. The provided file BooksAPI.js
contains the methods that were needed to perform necessary operations on the backend:
- 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.