Skip to content

Visualize global earthquakes in different time periods on a map and provide metadata for each earthquake

Notifications You must be signed in to change notification settings

kboul/global-earthquakes

Repository files navigation

Global Earthquakes

A react app to visualize global earthquakes on a map in different time periods, using filtering capabilities, and provide metadata for each earthquake.

Run the project

clone the project

select master branch

Navigate to the root folder:

pnpm install
pnpm start

browser listens to http://localhost:3000 as default port

The engine "node" is incompatible with this module

Run the dockerized app

Without app refreshing on dev changes

  1. Build the app using the app name and the current version, f.i
docker build . -t "global-earthquakes:v4.2.1"
  1. Run react using the image using the app name and the current version, f.i
docker run -d -p 3000:3000 global-earthquakes:v4.2.1

returns the id of the running container

  1. Stop the running container
docker stop container_id

With app refreshing on dev changes

  1. Get the app running, on root folder run
docker compose up
  1. Stop the app from running
docker compose down

if you make any changes to dockerfile

Rebuild

docker-compose build --no-cache

and then again

docker-compose up -d

Deploy on github pages

npm run deploy