/juxta-proxy-server

proxy server for my fantasy football app

Primary LanguageJavaScriptMIT LicenseMIT

juxta-proxy-server

I built a fantasy football tool using AngularJS (check it out: JuxtaPosition)

But I was having trouble with my API calls, due to cross-origin restrictions.

So I built this little proxy server in Node.js to handle the calls for me.

In the process, I added a few NPM packages to my tool belt

screen shot 2017-04-28 at 11 10 45 am

This simply enables CORS for whatever routes you define.

Just what it sounds like... an HTTP request with a promise built-in. I wait until the data is received and then passit back to the client.