diff --git a/README.md b/README.md
index ce4ea2eb85..b0300dbc8d 100644
--- a/README.md
+++ b/README.md
@@ -1,47 +1,24 @@
-# MyReads Project
+# MyReads Project Overview
-This is the starter template for the final assessment project for Udacity's React Fundamentals course. The goal of this template is to save you time by providing a static example of the CSS and HTML markup that may be used, but without any of the React code that is needed to complete the project. If you choose to start with this template, your job will be to add interactivity to the app by refactoring the static code in this template.
+In the MyReads project, you'll create a bookshelf app that allows you to select and categorize books you 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 you will use to persist information as you interact with the application.
-Of course, you are free to start this project from scratch if you wish! Just be sure to use [Create React App](https://github.com/facebookincubator/create-react-app) to bootstrap the project.
-## TL;DR
+App Functionality 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:
+Read, Currently Reading and Want to Read.
-To get started developing right away:
+There is also a second search page that includes an API call in order to add books to your collection under the title of your choice if you are currently reading, read or want to read so you can keep track of your collection.
-* install all project dependencies with `npm install`
-* start the development server with `npm start`
-
-## What You're Getting
-```bash
-├── CONTRIBUTING.md
-├── README.md - This file.
-├── SEARCH_TERMS.md # The whitelisted short collection of available search terms for you to use with your app.
-├── package.json # npm package manager file. It's unlikely that you'll need to modify this.
-├── public
-│ ├── favicon.ico # React Icon, You may change if you wish.
-│ └── index.html # DO NOT MODIFY
-└── src
- ├── App.css # Styles for your app. Feel free to customize this as you desire.
- ├── App.js # This is the root of your app. Contains static HTML right now.
- ├── App.test.js # Used for testing. Provided with Create React App. Testing is encouraged, but not required.
- ├── BooksAPI.js # A JavaScript API for the provided Udacity backend. Instructions for the methods are below.
- ├── icons # Helpful images for your app. Use at your discretion.
- │ ├── add.svg
- │ ├── arrow-back.svg
- │ └── arrow-drop-down.svg
- ├── index.css # Global styles. You probably won't need to change anything here.
- └── index.js # You should not need to modify this file. It is used for DOM rendering only.
-```
-
-Remember that good React design practice is to create new JS files for each component and use import/require statements to include them where they are needed.
+The API is restricted to the following search terms:
+'Android', 'Art', 'Artificial Intelligence', 'Astronomy', 'Austen', 'Baseball', 'Basketball', 'Bhagat', 'Biography', 'Brief', 'Business', 'Camus', 'Cervantes', 'Christie', 'Classics', 'Comics', 'Cook', 'Cricket', 'Cycling', 'Desai', 'Design', 'Development', 'Digital Marketing', 'Drama', 'Drawing', 'Dumas', 'Education', 'Everything', 'Fantasy', 'Film', 'Finance', 'First', 'Fitness', 'Football', 'Future', 'Games', 'Gandhi', 'Homer', 'Horror', 'Hugo', 'Ibsen', 'Journey', 'Kafka', 'King', 'Lahiri', 'Larsson', 'Learn', 'Literary Fiction', 'Make', 'Manage', 'Marquez', 'Money', 'Mystery', 'Negotiate', 'Painting', 'Philosophy', 'Photography', 'Poetry', 'Production', 'Programming', 'React', 'Redux', 'River', 'Robotics', 'Rowling', 'Satire', 'Science Fiction', 'Shakespeare', 'Singh', 'Swimming', 'Tale', 'Thrun', 'Time', 'Tolstoy', 'Travel', 'Ultimate', 'Virtual Reality', 'Web Development', 'iOS'
-## Backend Server
-To simplify your development process, we've provided a backend server for you to develop against. The provided file [`BooksAPI.js`](src/BooksAPI.js) contains the methods you will need to perform necessary operations on the backend:
+To get started developing or using this repository:
+* Git clone into the directory of your choice
+* install all project dependencies with `npm install`
+* start the development server with `npm start`
-* [`getAll`](#getall)
-* [`update`](#update)
-* [`search`](#search)
+## The following queries are used in order to perform necessary calls in the application if you would like to modify:
### `getAll`
@@ -79,14 +56,8 @@ search(query)
* 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.
## Important
-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](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.
+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 above 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.
## Create React App
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app). You can find more information on how to perform common tasks [here](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md).
-
-## Contributing
-
-This repository is the starter code for _all_ Udacity students. Therefore, we most likely will not accept pull requests.
-
-For details, check out [CONTRIBUTING.md](CONTRIBUTING.md).
diff --git a/package.json b/package.json
index 579d515885..863f185c86 100644
--- a/package.json
+++ b/package.json
@@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"dependencies": {
- "prop-types": "^15.6.2",
"react": "^16.6.3",
"react-dom": "^16.6.3",
+ "react-router-dom": "^4.3.1",
"react-scripts": "2.1.1"
},
"scripts": {
diff --git a/src/App.js b/src/App.js
index 785820d5df..61cf7f1865 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,206 +1,36 @@
import React from 'react'
-// import * as BooksAPI from './BooksAPI'
+import BooksList from './Components/BooksList'
+import Search from './Components/Search'
import './App.css'
+import { Route,Switch } from 'react-router-dom'
+import NoMatch from './Components/NoMatch'
-class BooksApp extends React.Component {
+export default class App extends React.Component {
state = {
- /**
- * TODO: Instead of using this state variable to keep track of which page
- * we're on, use the URL in the browser's address bar. This will ensure that
- * users can use the browser's back and forward buttons to navigate between
- * pages, as well as provide a good URL they can bookmark and share.
- */
+ books: [],
+ currentlyReading: null,
+ wantToRead: null,
+ read: null,
showSearchPage: false
}
- render() {
- return (
-
- {this.state.showSearchPage ? (
-
-
-
-
- {/*
- NOTES: The search from BooksAPI is limited to a particular set of search terms.
- You can find these search terms here:
- https://github.com/udacity/reactnd-project-myreads-starter/blob/master/SEARCH_TERMS.md
-
- However, remember that the BooksAPI.search method DOES search by title or author. So, don't worry if
- you don't find a specific author or title. Every search is limited by search terms.
- */}
-
-
+ {/*
+ NOTES: The search from BooksAPI is limited to a particular set of search terms.
+ You can find these search terms here:
+ https://github.com/udacity/reactnd-project-myreads-starter/blob/master/SEARCH_TERMS.md
+
+ However, remember that the BooksAPI.search method DOES search by title or author. So, don't worry if
+ you don't find a specific author or title. Every search is limited by search terms.
+ */}
+ this.updateQuery(event.target.value)}
+ />
+
+