NOTE_0: This is my full-stack web bootcamp final project, I only had 2 weeks to work on it (though I did start couple days early). There is still a lot of things to do, Top priorities: cleaning up the code base/files, user authentication (the current one was rushed and has many flaws) and use the github api to get stars, forks, commits (I already have the code for this I just ran into rate limitting so I commented it out)
NOTE_1: GITHUBSTONKS is still under development which means user data and stonk data will be reset many times, if you encounter a bug or have a suggestion/question please submit an issue or join our discord server
Githubstonks is a simple stock market game where the stocks are popular github repositories. You can buy and sell popular repo's like React, Node and more.
Create an issue with a link to the repo you wan't me to add and I might add it :)
intial price = stars * 0.0003 + forks * 0.0002 + commits * 0.0001
the price of the stocks go up and down based on how many total shares were bought
marketprice = total shares bought * 0.00001
price = initial price + market price
This is bad wording from github the only data I use and request is public info (github id and username). There has been a lot of complaints about this to github but no changes yet.
https://github.community/t/enable-you-to-trigger-actions-in-github/117938/12
https://news.ycombinator.com/item?id=26485844
I only use github id and username.
you can check for yourself here
GitHubStonks is open to contributions, but I recommend creating an issue first to let me know what you are working on that way we don't overwrite each other.
more info on contributing coming soon
coming soon
- website is not responsive
- more coming soon
Get - /api/stonkInfo
Response:
Logo
Name
Symbol
Price
Increase price
Increase percent
stars
forks
commitsproper api doc coming soon
