Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.
/ bookmap Public archive

Search bookstores with available books from ISBN

License

Notifications You must be signed in to change notification settings

clemlatz/bookmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bookmap

bookmap is an app that displays, for a given ISBN, bookshops that have the corresponding book available in stock on a map with geolocation.

Book availability informations are updated once a day from french independant bookstores portal Place des libraires.

Changelog

Todo list

Must have

  • AboutPage on mobile
  • Have some kind of spinner on map while searching
  • Handle errors in front & back ends
  • Handle fetching errors
  • Add welcome message
  • Wait for Google Maps to load before loading app
  • Google Analytics events from server

Nice to have

  • Tooltips
  • Add API response date in Redis cache
  • Show numbers of bookstores results after search
  • Regroup map markers into clusters
  • Increase map markers z-index on hover
  • "Call" and "Directions" buttons
  • React components test
  • PropTypes

Environnement variables

Some environnement variables are mandatory to run this project.

Build time env var

You can define them in an .env file.

  • REACT_APP_GMAPS_API_KEY: Google Maps API Key
  • REACT_APP_GOOGLE_ANALYTICS_ID: Google Analytics Property ID

Runtime env var

  • REDIS_URL: Redis connection url (used for caching)

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.