🚀 📈 Stock market game where the stocks are github repositories

Overview

GitHubStonks

What is githubstonks ?

githubstonks.com

Githubstonks is a stock market game where the stocks are popular GitHub repositories. You can buy and sell repo's like React, Node, and more.


NOTE_0: 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

Join my Discord server for questions/discussions/suggestions/reporting bugs


"You should add this repo to the game"

Create an issue with a link to the repo you want me to add, and I might add it :)

How are the share prices calculated ?

intial price = stars * 0.0003 + forks * 0.0002 + commits * 0.0001

The price of the stonks go up and down based on the total shares bought of that stonk.

marketprice = total shares bought * 0.00001

final price = initial price + market price


Contributions

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.

How to run locally (dev environment)

Frontend (React.js)

  1. cd client
  2. yarn install
  3. yarn start

if you want to fetch the hosted api instead of localhost go to client/.env and change localhost to https://api.githubstonks.com/

Backend (Node, Express, MongoDB)

  1. create a .env file in /server and put your mongoURI, github client id, github client secret, and github personal access token.

when generating a personal access token from github you need to enable the public_repo scope

MONGO_URI=
CLIENT_ID=
CLIENT_SECRET=
PERSONAL_ACCESS_TOKEN=
  1. cd server
  2. yarn install
  3. yarn start:dev

if you have any questions about running the code locally join our discord server !

Api doc

api link: https://api.githubstonks.com/

login/auth

METHOD path
GET /api/user/signin
GET /oauth-callback
POST /api/user/auth
DELETE /api/:id/delete-session

data

METHOD path
GET /api/stonkData
GET /api/leaderboard
GET /api/:id/info

buy/sell

METHOD path
POST /api/:id/buy
POST /api/:id/sell

proper api doc coming soon

You might also like...

Wallpik is a stock images & wallpapers downloading web app built with vanilla JavaScript & Pexels API

Wallpik is a stock images & wallpapers downloading web app built with vanilla JavaScript & Pexels API

Wallpik the stock photos & wallpaper web app (Preview) Wallpik Wallpik is a single page application built with HTML, CSS, Vanilla JavaScript & Pexels

Apr 19, 2022

Stock Performace App

Stock Performace App

Stock performance is a web application to check out performance by company to see which one performs the best, based on an external API provided by Financial Modeling Prep. Built with Ract, Redux, and SCSS.

Sep 3, 2022

A robust and light-weight inventory management application designed to help businesses maintain perfect control over every unit of stock.

A robust and light-weight inventory management application designed to help businesses maintain perfect control over every unit of stock.

Inventory Buddy Access inventory anytime on web, tablet or mobile. Inventory Buddy is a robust and light-weight inventory management application desig

Nov 5, 2022

This is an application that entered the market with a mobile application in real life. We wrote the backend side with node.js and the mobile side with flutter.

HAUSE TAXI API Get Started Must be installed on your computer Git Node Firebase Database Config You should read this easy documentation Firebase-Fires

Nov 4, 2021

Market Watcher - a blog where you can inform yourself about the latest economic-related news

Market Watcher - a blog where you can inform yourself about the latest economic-related news

Aug 5, 2022

A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

Nov 20, 2022

neverlose.cc market api wrapper

neverlose.cc market api wrapper

Neverlose.cc API This is the neverlose.cc market api wrapper written on node.js(ts) Getting started Install for npm npm install neverlose-api Then you

Feb 2, 2022

👍 💰 Market place for products with MERN stack

react-md Create an accessible React application with the material design specifications and Scss. Installing packages - How to install related compone

Sep 22, 2022

NFT Game Starter Project: https://github.com/buildspace/buildspace-nft-game-starter

Running React on Repl.it React is a popular JavaScript library for building user interfaces. Vite is a blazing fast frontend build tool that includes

Feb 11, 2022
Owner
Mustafa Ozturk
Software Developer
Mustafa Ozturk
A NEXT.js stock lookup app to find up-to-date data about a stock using Finnhub's API

Stock ticker challenge A NEXT.js stock lookup app to find up-to-date data about a stock using Finnhub's API. Thought Process I decided to make a searc

Sean Macfarlane 5 May 30, 2022
Equibles Stocks - JavaScript client

Equibles Stocks - JavaScript client Installation For Node.js npm To publish the library as a npm, please follow the procedure in "Publishing npm packa

Equibles 4 Jul 8, 2022
portfolio-project is a npm package to automatically update your projects section in your portfolio website. It will fetch the selected repositories directly from your GitHub account.

portfolio-project Those days of manually updating portfolio website after every new project made are gone ⚡ Yesss . . . you read that right. ?? portfo

Gaurav Gulati 15 Aug 3, 2021
Cloney - Clone all Github repositories from a user or organization

Cloney - Clone all Github repositories from a user or organization How to use $ cloney (users|orgs) (name) Preview Installation Prerequisites NodeJS E

Breydan 2 May 28, 2022
Token-gated repositories via GitHub API.

GateRepo About | Implementation | License About Simple implementation of ERC20 token-gating GitHub repositories. Fueled by Mike's tweet. Implementatio

Anish Agnihotri 114 Oct 16, 2022
GitHub action to automate managing repositories with labels, milestones and projects.

triagecat GitHub action to automate managing repositories with labels, milestones and projects. Link issues and PRs labels. Add issues and PRs to a pr

Oliver Wilkes 6 Jun 14, 2022
Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu

Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu. More info in User Guide.

Oleksii Bilyk 5 Jul 31, 2022
Use signature-based minting to allow users who have contributed to your github repositories to claim an NFT!

GitHub contributors NFT rewards This project demonstrates how you can build a full-stack web3 application that allows github contributors of certain r

thirdweb templates 8 Nov 5, 2022
Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormation.

CDK Github Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormatio

Pepperize 8 Nov 25, 2022
📦 An aframe component for displaying live stock tickers.

aframe-stock-ticker An aframe component for displaying live stock tickers. Also works with cryptocurrency and forex. Usage crypto-chart To create a cr

Mitarai 7 Jun 26, 2022