Book-sorting app created to learn application of React and React Router. Base was an html / css template, then using React functionality was added for:
- Moving Books - Books can stored on Currently Reading, Read or Want to Read shelves. You can switch shelves using the green arrow next to each book
- Select none to remove book
- Search - Can search for new books using the
+
located on the bottom right of the home screen- You can add new books to shelves from the serach screen
- Routing - Can use the url "/search" to go to search screen, or "/" for home screen
- Clone from GitHub - Clone the app using
git clone https://github.com/learnathoner/reactnd-project-myreads-starter.git
- Navigate to folder in terminal
- Install dependencies - In terminal:
npm install
- Launch app
- Development - In terminal:
npm start
- Production Build
- Install Serve -
npm install -g serve
- Serve Folder -
serve -s build
- Install Serve -
- Development - In terminal:
Above is the current layout of Components in the app.
Index
wrapsApp
inRouter
, then loads AppApp
directs to either theBookShelves
orSearchPage
Components, and loads the search buttonSearchPage
loadsSearchResults
- If results are found, books are loaded from
Book
- If results are found, books are loaded from
BookShelves
loads shelves fromBookShelf
BookShelf
creates a shelf usingBook
- If book has been read, displays rating from
BookRatings
for book