Giter VIP home page Giter VIP logo

myreads's Introduction

MyReads

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

MyReads is a bookcase application that allows you to select and sort the books you have read, are reading or want to read. The project emphasizes using React to build the application and provides an API server and client library that is used to store information as the user interacts with the application.

I chose to build this project from scratch using React, Webpack, Babel, ESlint, instead of using plain Create React App.

πŸ‘€ Demo and Screenshots

For a demo, check out https://myreads-app.netlify.com/

myreads-screenshot-1

myreads-screenshot-2

πŸš€ Quick start

  1. Download the project and cd into it:
git clone https://github.com/junagao/myreads.git
cd myreads
  1. Install dependencies and run the application:
yarn install
yarn start
  1. Open your browser and navigate:

http://localhost:3000

🧐 What's inside?

Features (Requirements)

  • Display 3 book shelves:
    • Currently Reading
    • Want to Read
    • Read
  • List books categorized by shelf
  • Shelf Update
  • Search Page (*)

(*) In the search page (/search), you can get the list of books as by your input keywords. 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.

Aditional Features

  • Loading animation (books and searched books)
  • Debounce to support live search (If not so, ajax call is too frequent)
  • Page not found
  • Ratings
  • Deployment Netlify Status

Backend Server

  • BooksAPI: Book search API provided by Udacity! BooksAPI

To simplify the development process, I used the provided backend server. The provided file BooksAPI.js contains the methods needed 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.

πŸ“š Tech Stack

  • Webpack
  • Babel
  • ESLint
  • React
    • react-router
    • react-spinners-kit
    • react-fontawesome
  • Jest
  • Enzyme

πŸ’‘What's next

  • Testing

Author

Juliane Nagao - GitHub - LinkedIn

License

This project is licensed under the MIT License.

myreads's People

Contributors

junagao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.