Finance is a stock trading simulator built with Python, Flask, and SQLite.
It offers a simple web interface for simulating buying/selling stocks, and tracking portfolio performance.
The app uses two API:s. One to get the current prices of stocks (yfinance), and another to get memes for HTTP status messages (memegen).
🚀 View the deployed app on Heroku
- 🐍 Python (Flask)
- 🗄️ SQLite (lightweight database)
- 🧪 HTML/CSS (for UI templates)
- 🐳 Docker (containerized for portability)
- 🔁 GitHub Actions (CI/CD pipeline)
- ☁️ Heroku (production deployment)
This repository includes a fully automated deployment pipeline using GitHub Actions:
- ✅ Builds Docker image from the latest
mainbranch - 📦 Pushes the image to:
- Docker Hub (
rapt9/finance) - Heroku Container Registry
- Docker Hub (
- 🚀 Automatically deploys the new version to Heroku
# Clone the repo
git clone https://github.com/rapt9/finance
cd finance
# Install dependencies
pip install -r requirements.txt
# Run the app
flask run
# Create an account at http://localhost:5000/register and start trading! docker pull rapt9/finance:latest
docker run -d -p 5000:5000 rapt9/finance
# Create an account at http://localhost:5000/register and start trading!