Files
Mind-Expanding-Books/app
Carl Dungca 9f2a822a54 Feature added: Mark to read (#252)
* Rendered a static reading list button to each bookcard component

* Attached click listener to bookmark button to log book data

* Clicking bookmark button saves book information to a localStorage array

* Updated card height to account for button

* Updated saveBookToLocalStorage function to use objects instead of arrays

* Can now toggle books in and out of localStorage

* Reverted previous 4 commits so that data isn't directly written to localStorage

* Created a sidebar link to reading list

* Added placeholder bookmarks page

* Bookmark button now updates state in index.js

* Initialized context API

* Wrote a reducer function to handle bookmark state changes

* Configured reducer to add books in and out of state

* Reading list is now preserved between state AND localStorage when changing categories

* Fixed some code format issues

* Rendered saved books in reading list component

* Toggle apperance of bookmark button

* Hacky fix for positioning of reading list sidebar link

* Adjusted style and alignment of bookmark button

* Added check to determine if window is defined in useEffect

* Exported the gatsby-ssr API
2020-10-15 01:30:46 +05:30
..
2020-10-15 01:30:46 +05:30
2020-08-23 00:58:19 +05:30
2019-10-13 20:19:56 +05:30
2019-10-13 20:19:56 +05:30
2019-10-13 20:19:56 +05:30
2020-08-23 00:57:54 +05:30
2020-09-27 22:32:33 +05:30
2020-09-27 16:02:12 +05:30
2019-10-13 20:19:56 +05:30
2020-10-11 16:53:45 +05:30
2020-09-27 22:32:33 +05:30
2020-08-23 00:57:54 +05:30
2020-08-23 00:57:54 +05:30

app/ directory contains the source code of the Mind Expanding Books website

How to setup development environment

git clone https://github.com/hackerkid/Mind-Expanding-Books
cd app/
npm install
gatsby develop

High level overview of the website

  • The website is made using Gatsby, which is a React based static site generator.
  • The website is deployed in Netlify automatically whenever a commit is pushed to GitHub.
  • When you create a pull request with changes to the source code, Netlify will automatically create a website for previewing the changes. You can click on "Details" in the "Deploy preview ready!" message in the pull request page for seeing the website.

From where does the website fetches the data of the books?

Website fetches the data of the books from app/src/data/books.json file. See README in utils directory for details on how this file is generated.