EQTrack is a web application built with React to view latest earthquake data.
To get started with EQTrack, follow these steps:
- Clone the repository to your local machine.
- Install the necessary dependencies by running
npm install
. - Start the development server by running
npm start
. - Open http://localhost:3000 to view the app in your browser.
Execute unit tests by running npm test
.
EQTrack can be deployed using either a build script or Docker. Follow the instructions below:
- Run
npm run build
to build the app for production. - Copy the contents of the
build
folder to a remote server directory.
- Build the Docker image by running
docker build -t eqtrack --build-arg REACT_APP_GOOGLE_MAP_API_KEY=<YOUR_API_KEY> .
. - Verify the image creation by running
docker images | grep eqtrack
. - Run the container in detached mode by executing
docker run -p 3000:80 eqtrack
.