QuakeWatch is a web application that visualizes real-time earthquake data, utilizing a Ruby on Rails backend to serve data from the USGS API. This frontend is built with React and TypeScript, providing an interactive user interface for data visualization. g
- Node.js
- npm or yarn
Clone the repository and install the dependencies:
git clone https://github.com/jorge-holguin/QuakeViewFrontend.gitcd QuakeWatch/frontend
npm installEnsure to set up the necessary environment variables in .env, including the backend URL.
To start the local development server:
npm startView the application in action by visiting http://localhost:3001. It is recommended to use port 3001 to avoid conflicts with the backend.
Instructions for deploying on Netlify:
-
Build your project: First, you need to compile your React application into static files that can be served. Run the following command in your project directory:
npm run build
This command generates a build directory with all the static files.
-
Set up on Netlify: Log into Netlify and create a new site by linking your GitHub repository. Choose to deploy from the main branch.
-
Configure Environment Variables: In the Netlify dashboard, set the necessary environment variables such as API endpoints or any other secrets your application requires.
-
Deploy: Follow Netlify’s prompts to deploy your application. Netlify will automatically deploy your application each time you push changes to the main branch.
Contributions are welcome. Please send your pull requests to the main branch.
MIT License

