/pr_quake_mapbox

USGS ALL-DAY data for PR

Primary LanguageJavaScript

This project was bootstrapped with Create React App.

Visit HERE to see the app running

You can freely edit and use the code submitted here as long as there is mention of this repo.

Working

Fetch data with axios and use mapbox to display the data.

Feel free to improve

Change to hooks || Have the markers display on hover || Improve CSS (heavily considering replacing semantic UI react)

PLEASE MAKE YOUR OWN MAPBOX API KEY TO MAKE THIS WORK LOCALLY

Check the mapbox documentation on how to get your own API key

To run locally

Clone the repo

create an .env file The .env file should contain the following line:

REACT_APP_API_KEY= YOUR_API_KEY

Once you have your API key, you can run this with your preferred method npm start or yarn start.

Disclaimer

This piece of code uses public USGS data and is by no means any kind of official app.