Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

-Rails-API-only

Setup and Run

  1. Clone the repository:

    git clone https://github.com/madmad7/-Rails-API-only
    cd <repository_folder>
  2. Build and run the Docker containers:

    docker-compose build
    docker-compose up
  3. Create the database:

    docker-compose run web rake db:create
  4. Run database migrations:

    docker-compose run web rake db:migrate
  5. Fetch and store dog breeds from the Dog API:

    docker-compose run web rake fetch:dog_breeds
  6. Access the breeds data at:

    http://localhost:3000/api/v1/dogs/breeds
    

API Endpoint

  • GET /api/v1/dogs/breeds: Returns a list of all dog breeds.

Notes:

  • Ensure Docker is installed on your machine before running the above commands.
  • The default port is set to 3000; make sure this port is available or adjust the docker-compose.yml accordingly.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages