Skip to content

React MyReads Project for Udacity's React Fundamentals course of React Nano Degree

Notifications You must be signed in to change notification settings

asadmanzoor93/reactnd-project-myreads

 
 

Repository files navigation

MyReads Project

This is code for the final assessment project for Udacity's React Fundamentals course.

In the MyReads project, i have created 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.

screencapture-localhost-3000-2020-08-02-00_07_20

Installation Guide

To get started developing right away:

  • install all project dependencies with npm install
  • start the development server with npm start

Backend Server

To simplify development process, a backend server is provided for you. The provided file BooksAPI.js contains the methods you will need to perform necessary operations on the backend:

getAll

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 your app.

update

Method Signature:

update(book, shelf)
  • book: <Object> containing at minimum an id 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

search

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. You'll need to make sure that books have the correct state while on the search page.

Important Note

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.

About

React MyReads Project for Udacity's React Fundamentals course of React Nano Degree

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.7%
  • CSS 21.7%
  • HTML 8.6%