Skip to content

TorresJamesE/api-dumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Dumper

Overview

API Dumper is a Go-based command-line tool designed to fetch and store data from various public APIs. The initial implementation focuses on TheMealDB API, which provides a comprehensive database of meal recipes.

Features

  • Fetch meal data from TheMealDB API.
  • Transform and store the fetched data in a structured format.
  • Configurable request delay to avoid hitting API rate limits.
  • Modular design to easily add support for more APIs in the future.

Installation

  1. Ensure you have Go installed on your machine. You can download it from golang.org.
  2. Clone this repository:
     git clone
     cd api-dumper
     go run main.go
  3. Install dependencies:
    go mod tidy
  4. Create a .env file in the root directory with the following content:
    DEV_URL="https://www.themealdb.com/api/json/v1/1/"
    DEV_API_KEY="1" // Use "1" for TheMealDB free API
    
    ENVIRONMENT="development" // or production if you have an API Key
    REQUEST_DELAY_SECONDS=3
    
    PROD_API_URL=""
    PROD_API_KEY=""
  5. Run the application:
    go run main.go

About

CLI tool written in Go to extract, transform, and dump data from APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages