Skip to content

drshott/gist-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub gist API

This is an example interface for GitHub API. Using this tool you will be able to view publicly available gists for a user.

This repository contains the Python API code and Docker file as well as helm chart required to get the tool up and running.

Building and Running a container

  1. Clone the GitHub repo:

    git clone https://github.com/drshott/gist-api.git
  2. Navigate inside the directory

    cd gist-api/app
  3. Run the following command to build the image:

    docker build -t <username>/<imagename> .
  4. Run the following command to start the containers:

    docker run -n gist-api -p 8080:8080 -itd <username>/<imagename>

Use helm chart

Set nginx ingress for your kubernetes cluster if not done already.

helm install nginx-ingress ingress-nginx/ingress-nginx --set controller.publishService.enabled=true

Install the chart

cd gist-api/
helm install gist-api ./charts/gist-api

Access API

You can now try the API endpoints

Swagger documentation

For docker image

curl -v http://localhost:8080/docs     

For helm Add gistapi.localhost entry in your hosts file

curl -v https://gistapi.localhost/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors