Skip to content

NathanKleekamp/express-api-proxy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express API Proxy Example

Use Express to proxy requests to a 3rd party API. Useful for making CORS and authenticated requests.

To use this for making authenticated requests to Github, you'll need to get a personal API token from Github, and save it in a .env:

TOKEN='<your token here>'
$ npm install && npm start

Then visit localhost:3000.

To see the proxied GET: /users/:username response from Github, visit http://localhost:3000/api/users/octocat

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages