brunobritodev / awesome-github-stats

🚀 Show everyone how amazing you are! Stay motivated and display your total contributions and level on your GitHub profile README
https://awesome-github-stats.azurewebsites.net/
MIT License
209 stars 22 forks source link

Ability for users to create their own end point #27

Open guylepage3 opened 1 year ago

guylepage3 commented 1 year ago

Is your feature request related to a problem? Please describe. Ability for users to create their own end point as this will allow for a better UX.

Describe the solution you'd like A node.js implementation similar to https://github.com/anuraghazra/github-readme-stats that could be deployable on https://vercel..com would be very helpful.

Additional context Your stats are by far the most accurate I've come across. Great work!

I am currently working on using my end point, https://awesome-github-stats.azurewebsites.net/user-stats/guylepage3/rank, in order to build out a different version of your readme.md stats. See example here: https://github.com/guylepage3.

I'd really like to get a more consistent version of these stats so that I can automate them. I feel by allowing users to create their own end points will allow for a much more cost efficient and better UX.

brunobritodev commented 1 year ago

@guylepage3

As far as I can see, there is no way to deploy an asp.net core site to vercel. I really like vercel and how easy it can be, but I tried to find ways to do that without success and every docs says there are no support

guylepage3 commented 1 year ago

@brunobritodev, I was actually asking if there was a way to just create this in javascript instead of .net. But I guess that would be difficult if you're only a .net person.

guylepage3 commented 1 year ago

@brunobritodev, your end point seems to be causing some CORS issues. Is there a way to expose your endpoints to be raw .json data?

brunobritodev commented 1 year ago

@brunobritodev, your end point seems to be causing some CORS issues. Is there a way to expose your endpoints to be raw .json data?

The new version #31 are allowing cors from any origin.

@brunobritodev, I was actually asking if there was a way to just create this in javascript instead of .net. But I guess that would be difficult if you're only a .net person.

To create a version for nodejs isn't hard, but requires a lot of work and hard time on it. But I guess it requires less effort to make a dockerfile and publish it on dockerhub, so you can easily host it in another services, like Amazon ECS, AWS Fargate or Azure Container Instance.

guylepage3 commented 1 year ago

@brunobritodev at what time does the API end point update each day? It seems to be at 16:00:00 UTC. Can we change this to 12:00:00 UTC?

brunobritodev commented 1 year ago

There is a 24-hour cache because the GitHub API is quite restrictive in the number of calls a token can make. Although the project is small, there is a considerable number of calls per day.