项目作者: kboul

项目描述 :
Visualize earthquakes in different time periods on a map and provide metadata for each earthquake
高级语言: TypeScript
项目地址: git://github.com/kboul/react-earthquake.git
创建时间: 2019-09-09T16:31:19Z
项目社区:https://github.com/kboul/react-earthquake

开源协议:

下载


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 app via docker

Without app refreshing on dev changes

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

returns the id of the running container

  1. Stop the running container
  1. docker stop container_id

With app refreshing on dev changes

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

if you make any changes to dockerfile

Rebuild

  1. docker compose build --no-cache

and then again

  1. docker compose up -d