Skip to content

mpinheir/eqk

Repository files navigation

This application displays Earthquakes that ocurred in the last 30 days.

Autor: Marcelo Pinheiro

Data Source

USGS

Table of Contents

Getting Started

Prerequisites

  • Go installed on your machine
  • Internet connection to fetch earthquake data from the USGS API

Installation

  1. Clone the repository:

    git clone https://github.com/mpinheir/eqk.git
  2. Change into the project directory:

    cd eqk
  3. Build the binary:

    go build
  4. Run the program:

    go run main.go <arg>

    ex: go run main.go 6 will display earthquake(s) greater than 6 degrees

  5. Run the binary after building:

    ./eqk <arg>

    ex: ./eqk 5 will display earthquake(s) greater than 5 degrees

    -------------------------------------------------------------------
    Earthquake(s) above 5.0 degrees, in the last 30 day:
    -------------------------------------------------------------------
    Epicenter = [Location]
    Magnitude: [Magnitude]
    Time: [Timestamp]
    -------------------------------------------------------------------
    

Contributing

Contributions to this project are welcome! Plese feel free to open issues and pull requests to suggest improvements, report bugs, or add new features.

License

This project is licensed under the MIT License.