Skip to content

agl0809/react-location-history-player

Repository files navigation

Build Status

Try a DEMO
Documentation

Installation

git clone https://github.com/agl0809/react-location-history-player/
cd react-location-history-player
npm install

Available scripts

Runs the app in the development mode:

npm start

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.

Launches the test runner in the interactive watch mode:

npm test

Builds the app for production to the build folder:

npm run build

It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the file names include the hashes.

Settings

There are two different ways to set up the data provided in constants.js

Firebase service
By default Firebase service example will be used.

export const JSON_FILE_URL = 'https://api-project-923029851043.firebaseio.com/locations.json';

Google Takeout
Use a specific data file downloading the location history JSON file. Then move it to /public project folder .

export const JSON_FILE_URL = '/YOUR_FILE_NAME.json';