Thanks to visit codestin.com
Credit goes to github.com

Skip to content

APPOLO-UNAL/API_GATEWAY

Repository files navigation

Prerequisites

Before getting started, make sure you have the following prerequisites:

Docker Compose Setup

To set up the project using Docker Compose, follow these steps:

  1. Make sure you have Docker installed on your system.

  2. Open a terminal and navigate to the project directory.

  3. Run the following command to start the containers:

    docker-compose up -d
    
  4. To verify the correct functioning, access localhost/graphql and execute the following queries:

  • Query 1:

    query {
         tracksByName(idTrack: "Fantasias") {
              tracks {
                   items {
                        album {
                             images {
                                  url
                             }
                             albumType
                             name
                             id
                             totalTracks
                             releaseDate
                        }
                        externalUrls {
                             spotify
                        }
                        artists {
                             name
                             popularity
                        }
                   }
              }
         }
    }
  • Query 2:

    query {
         comments {
              Id
              userId
              picture
              userName
         }
    }

Restarting Docker Compose

To restart Docker Compose, follow these steps:

  1. Open a terminal and navigate to the project directory.

  2. Run the following command to stop the containers:

    docker-compose down
    
  3. Run the following command to remove the images (except for Elasticsearch):

    docker rmi image_id
    

    Replace image_id with the actual ID of each image you want to remove, except for Elasticsearch.

  4. After removing the images, you can start the containers again using the Docker Compose setup steps mentioned above.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •