ajlende/go-api-proxy

Learning Go by making a proxy for APIs I'm using on my website

★ 0Forks 0GoGitHub ↗Compare

README

go-api-proxy

A Go proxy app, which can easily be deployed to Heroku.

Dependencies

Make sure you have Go version 1.12 or newer and the Heroku Toolbelt installed.

Environment

Create a .env file with the following variables:

GITHUB_ACCESS_TOKEN=<your-github-access-token>
GITHUB_API_URL=https://api.github.com
ALLOWED_ORIGINS=https://one.example.com,https://two.example.com

Running Locally

git clone https://github.com/ajlende/go-api-proxy.git
cd go-api-proxy
make local

Your app should now be running on localhost:5000.

Deploying to Heroku

heroku create
make deploy
heroku open

or

Deploy

Documentation

For more information about using Go on Heroku, see these Dev Center articles:

Contributors

ajlendejonmountjoyjhubertttnatebeckntassonehackebrot

Issues