https://github.com/erushasandushan/cafeteria-system
A C++ and SQL-based cafeteria management system built as a learning project to strengthen my C++ skills and practice database integration. ( Started Learning C++ in September 2025 )
https://github.com/erushasandushan/cafeteria-system
api backend cpp management
Last synced: 9 months ago
JSON representation
A C++ and SQL-based cafeteria management system built as a learning project to strengthen my C++ skills and practice database integration. ( Started Learning C++ in September 2025 )
- Host: GitHub
- URL: https://github.com/erushasandushan/cafeteria-system
- Owner: ErushaSandushan
- Created: 2025-09-17T18:12:26.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-19T17:49:12.000Z (9 months ago)
- Last Synced: 2025-09-19T19:59:21.163Z (9 months ago)
- Topics: api, backend, cpp, management
- Language: C++
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cafeteria-System
A C++ and SQL-based cafeteria management system built as a learning project to strengthen my C++ skills and practice database integration.
Started Learning C++ in September 2025.
Username : `admin` / `manager`
Password : `password`

### TO DO
- Menu System
- View available food items. [ DONE ]
- Add new items (admin mode) [ PENDING ].
- Order System
- Place order (choose item, qty). [ DONE ]
- Store in DB (ORDERS table). [ DONE ]
- Calculate total bill. [ DONE ]
- Reports (Admin Panel)
- Show all orders of the day. [ MAYBE :) ]
- Find most popular item. [ DONE ]
- Show total sales. [ DONE ]
- Login (Admins only) [ DONE ]
- More secure password encryption [ PENDING ]
- User Management [ PENDING ]
- Web UI
- Design REST API backend in C++ (Crow) [ DONE ]
- Connect SQLite database to backend for live data retrieval and updates [ DONE ]
- Develop Web UI (frontend) [ DONE ]
- Admin Dashboard [ PENDING ]
How to Complie : `g++ .\main.cpp -lsqlite3 -lssl -lcrypto -o .\Cafeteria.exe`
# Web API (Not Smooth)
Please clone below repos
- `https://github.com/chriskohlhoff/asio.git`
- `https://github.com/CrowCpp/Crow.git`
How to complie : `g++ -std=c++17 main.cpp -o API -I Crow/include -lsqlite3 -I asio/include -lws2_32 -lmswsock`
Please note that your folder path needs to arranged as below
```bash
/WEBAPI/
-- Crow/
-- asio/
-- templates/
-- main.cpp
```
