A full-stack web application that lets a retail video game store manage its inventory and review sales. Built as a team project for CIS 5800 (Spring 2026).
Live demo: https://astro-gaming-store-dmef.onrender.com (Hosted on Render's free tier, so the first load after a period of inactivity can take up to a minute.)
| Screen | Features |
|---|---|
| Login | Role-based authentication (Admin / Cashier), bcrypt-hashed passwords |
| Dashboard | Key metric cards, recent sales feed, stock alert panel, light/dark mode |
| Inventory | 41 products with search, platform/genre/status filters, pagination, CRUD |
| Add/Edit | Form validation, reorder threshold warning, delete confirmation |
| Alerts | Filter tabs (All / Out of Stock / Low Stock), CSV export, reorder buttons |
| Reports | Daily revenue chart, platform breakdown, top sellers, CSV export |
| Offline | Progressive Web App: service worker caching, offline banner, installable |
Roles
- Admin: full access (add, edit, delete products)
- Cashier: read-only access (view inventory, alerts, dashboard, reports)
The demo database is seeded with sample products and sales data for demonstration purposes only.
- Backend: Python, Flask, Flask-Bcrypt
- Database: SQLite (created automatically on first run)
- Frontend: HTML, CSS, Bootstrap 5, Chart.js, Jinja2 templates
- Deployment: Render
- Version control: Git / GitHub
| Admin inventory (add / edit / delete) | Cashier inventory (read-only) |
|---|---|
![]() |
![]() |
|
| Low-stock alerts | Reports and analytics |
|---|---|
![]() |
![]() |
git clone https://github.com/kernelpanic-root/astro-gaming-store.git
cd astro-gaming-store# macOS / Linux
python3 -m venv venv
source venv/bin/activate
# Windows
python -m venv venv
venv\Scripts\activatepip install -r requirements.txtFor local development, the end of app.py should read:
if __name__ == "__main__":
init_db()
app.run(debug=True, port=8000)Then run:
python app.py # Windows
python3 app.py # macOS / LinuxOpen your browser at http://localhost:8000
Accounts are created when the database is first seeded (see database.py). Login credentials are not published in this repository.
To try the live demo, please contact me for demo credentials.
astro-gaming-store/
├── app.py Flask routes and application logic
├── database.py SQLite setup and seed data
├── requirements.txt Python dependencies
├── static/
│ ├── css/style.css Custom styles (light and dark mode)
│ └── js/main.js Theme toggle and JS helpers
└── templates/
├── base.html Master layout (sidebar, top bar)
├── login.html Login screen
├── dashboard.html Dashboard
├── inventory.html Inventory list
├── add_edit_item.html Add / edit form
├── alerts.html Low-stock alerts
└── reports.html Reports and analytics
The SQLite database (instance/astro.db) is created automatically on first run.
- Hash passwords with bcrypt and never store them in plaintext.
- Use parameterized SQL queries instead of string interpolation.
- Service workers need different caching strategies for static assets and dynamic pages.



