A react app to visualize global earthquakes on a map in different time periods, using filtering capabilities, and provide metadata for each earthquake.
clone the project
select master branch
Navigate to the root folder:
pnpm install
pnpm start
browser listens to http://localhost:3000 as default port
Without app refreshing on dev changes
- Build the app using the app name and the current version, f.i
docker build . -t "global-earthquakes:v4.2.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
- Stop the running container
docker stop container_id
With app refreshing on dev changes
- Get the app running, on root folder run
docker compose up
- 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
npm run deploy