Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/austintackaberry/stocks
machine learning web app game where the user competes against the AI in picking stocks
https://github.com/austintackaberry/stocks
d3 flask javascript pandas python react sklearn
Last synced: 27 days ago
JSON representation
machine learning web app game where the user competes against the AI in picking stocks
- Host: GitHub
- URL: https://github.com/austintackaberry/stocks
- Owner: austintackaberry
- License: mit
- Created: 2017-10-31T07:17:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T13:27:10.000Z (almost 2 years ago)
- Last Synced: 2024-09-27T20:22:41.711Z (about 1 month ago)
- Topics: d3, flask, javascript, pandas, python, react, sklearn
- Language: JavaScript
- Homepage: http://www.StockIT.tech
- Size: 72.4 MB
- Stars: 131
- Watchers: 14
- Forks: 26
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# StockIT
StockIT is a machine learning web app game that allows the user to compete agiainst the AI in buying/selling stocks. Random stocks are chosen and a random date in the past is chosen. The stock price starts trending from that date and continues for 365 days. While the stock price trends, the user competes against the AI in buying/selling stocks.
Pandas and Scikit Learn was used to develop a linear regression model to predict stock price. D3 and React were used to plot the data and update the leaderboard. Optimized for desktop and mobile.
## Getting Started
In order to run a dev server on your local host, you will need to first install all the required npm packages for the frontend.
`cd client`
`npm install`
Now that you have installed all the required frontend packages, you can start the frontend server on port 3000:
`npm start`
Next you will need to install the required python packages:
`cd ..`
Install the virtual environment directory:
`python3 -m venv venv`
Activate the virtual environment
`. venv/bin/activate`
Install the requirements
`pip install -r requirements.txt`
Now you can open up an additional terminal and start up a server for the backend on port 5000:
`export FLASK_APP=app.py`
`export FLASK_ENV=development`
`flask run`
Now you are all set up!
## Built With
* React
* D3
* Python
* Flask
* Pandas
* Scikit Learn## Authors
Austin Tackaberry
## License
This project is licensed under the MIT License - see the LICENSE.md file for details