Giter Club home page Giter Club logo

vercel_proxy's Introduction

Tiny vercel proxy

By deploying your code (or running it locally with npm start) any call made to the /api endpoint will be proxied to https://example.org.

Check the documentation of the http-proxy-middleware library (and of the node-http-proxy library, used under-the-hood) to learn how you can manipulate the proxied request & response.

Deploy on your own Vercel instance

Since the GitHub API only allows 5k requests per hour, my https://github-readme-stats.vercel.app/api could possibly hit the rate limiter. If you host it on your own Vercel server, then you don't have to worry about anything. Click on the deploy button to get started!

NOTE: Since #58 we should be able to handle more than 5k requests and have no issues with downtime :D

Deploy to Vercel

Guide on setting up Vercel ๐Ÿ”จ
  1. Go to vercel.com
  2. Click on Log in
  3. Sign in with GitHub by pressing Continue with GitHub
  4. Sign in to GitHub and allow access to all repositories, if prompted
  5. Fork this repo
  6. After forking the repo, open the vercel.json file and change the maxDuration field to 10
  7. Go back to your Vercel dashboard
  8. Select Import Project
  9. Select Import Git Repository. Select root and keep everything as is.
  10. Create a personal access token (PAT) here and enable the repo permissions (this allows access to see private repo stats)
  11. Add the PAT as an environment variable named PAT_1 (as shown).
  12. Click deploy, and you're good to go. See your domains to use the API!

๐Ÿ’– Support the project

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can use this service for free.

However, if you are using this project and are happy with it or just want to encourage me to continue creating stuff, there are a few ways you can do it:-

  • Giving proper credit when you use github-readme-stats on your readme, linking back to it :D
  • Starring and sharing the project ๐Ÿš€
  • paypal.me/anuraghazra - You can make one-time donations via PayPal. I'll probably buy a coffee tea. ๐Ÿต

Thanks! โค๏ธ


https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss

Contributions are welcome! <3

Made with โค๏ธ and JavaScript.

vercel_proxy's People

Contributors

yadin12690 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.