Computer Science
Route Planning on the Delhi Metro Network: A Benchmark Study of Shortest-Path Algorithms (Python)
Dijkstra, Bellman-Ford and A* measured on 243 real stations, not toy graphs
- Python
- NetworkX
- pandas
- +2
Pre-order snacks, get a token and a pickup slot, and let the counter work from a live queue screen
Mapped to your syllabusBCU / Bangalore University SEP 2024 · Project Work · Semester 6QuickBite is a pre-order and token system for a college canteen, built for the 15-minute short break when hundreds of students rush the counter at once. In most Bengaluru colleges the canteen staff take orders shouting across the counter, write bills on a pad and hand out food in no particular order; half the break is spent in the queue.
With QuickBite, a student logs in on a phone before the break, picks items from the day's menu, chooses a pickup slot (for example 11:00–11:05) and gets a token number. Payment is made by scanning the canteen's UPI QR code as usual, and the student types the UPI transaction reference into the app so staff can match it; there is no payment gateway. In the kitchen, a queue screen on a cheap tablet or monitor shows orders grouped by slot, and staff mark each token Preparing, Ready and Collected. The canteen manager sets the daily menu and stock, and closes the day with a sales report.
The project is a two-member team project using Python Flask, MySQL, HTML, CSS and JavaScript, applying Web Programming (DSCS61), DBMS (CS31T) and Python (DSCSC51) from the BCU SEP B.Sc CS syllabus. It is small enough to finish in a semester and real enough to demonstrate in your own college canteen.
Syllabus alignment
During the short break, a college canteen must take, bill and serve hundreds of orders in about fifteen minutes. Orders are taken verbally, payments are checked by glancing at a phone and stock is known only when a tray empties. As a result students spend most of the break in a queue, orders get mixed up, items run out after students have already waited, and staff cannot prepare in advance because they do not know demand. At the end of the day the canteen has no reliable record of what sold.
The problem is to build a simple, low-cost web application that lets students pre-order before the break, assigns each order a token and a capacity-limited pickup slot, captures the UPI payment reference for verification, gives staff a live queue screen, and gives the canteen manager control over the daily menu, stock and sales reports.
College canteens face a sharp peak of demand in short breaks, which leads to long queues, wrong orders and lost sales. QuickBite is a web application that lets students pre-order from the day's menu, receive a token and a pickup slot, and record their UPI payment reference, while canteen staff work from a live queue screen and the manager maintains menu, stock and daily sales reports. It is built with Flask, MySQL and plain HTML, CSS and JavaScript.
A typical college canteen of a fictional institution, Sri Vidyaranya First Grade College, serves 300–500 snacks in a 15-minute break. Orders are taken verbally and bills are written by hand. Popular items run out without warning, and students wait only to be told that samosas are over. Staff have no idea how many plates of each item to prepare before the bell rings.
In scope
Out of scope
We follow the Waterfall model with a prototype step, which suits a small two-member team with fixed requirements and a semester deadline. A clickable HTML prototype is shown to the canteen manager in week 3 before coding begins.
| Phase | Weeks | Activities | Owner |
|---|---|---|---|
| Requirement study | 1–2 | Observe the canteen in two breaks, interview the manager and staff, list requirements | Both |
| Design | 3–4 | ER diagram, DFD level 0/1, table design, HTML prototype | Both |
| Student module | 5–8 | Login, menu view, cart, slot selection, token, UPI reference | Member A |
| Staff & manager module | 5–8 | Queue screen, status updates, menu/stock, sales report | Member B |
| Integration | 9–10 | Merge modules, common layout, role checks | Both |
| Testing | 11–12 | Unit tests (pytest), test-case tables, trial in one short break | Both |
| Report & viva prep | 13–14 | Report chapters, PPT, demo rehearsal | Both |
Testing plan: pytest unit tests for the token generator, slot-capacity check and stock decrement; manual black-box test cases for every screen; and a small trial with 15–20 classmates ordering in one break, noting problems in a feedback table.
QuickBite uses a three-tier client–server architecture: browser pages (HTML/CSS/JavaScript rendered with Jinja2), a Flask application layer with blueprints for each role, and a MySQL database accessed through parameterised queries with PyMySQL.
flowchart TD
S["Student phone browser"] --> F["Flask app (blueprints: student, staff, manager)"]
Q["Queue screen (auto-refresh)"] --> F
M["Manager browser"] --> F
F --> A["Login and role check"]
A --> L["Business logic: stock, slot, token"]
L --> DB[("MySQL 8")]
F --> R["Sales report (CSV)"]erDiagram
USER ||--o{ ORDERS : "places"
PICKUP_SLOT ||--o{ ORDERS : "is chosen for"
ORDERS ||--|{ ORDER_ITEM : "contains"
MENU_ITEM ||--o{ ORDER_ITEM : "appears in"
MENU_ITEM ||--o{ DAILY_STOCK : "has"
ORDERS ||--o| PAYMENT : "is paid by"
USER {
int id PK
string regNo
string name
string role
string passwordHash
}
MENU_ITEM {
int id PK
string name
decimal price
string category
}
DAILY_STOCK {
int id PK
int itemId FK
date day
int qtyAvailable
}
PICKUP_SLOT {
int id PK
time startTime
time cutoffTime
int capacity
}
ORDERS {
int id PK
int userId FK
int slotId FK
date day
int tokenNo
string status
}
ORDER_ITEM {
int id PK
int orderId FK
int itemId FK
int qty
decimal unitPrice
}
PAYMENT {
int id PK
int orderId FK
string upiRef
decimal amount
boolean verified
}flowchart TD
ST["Student"] -->|"order, UPI reference"| SYS["QuickBite system"]
SYS -->|"token, status"| ST
CS["Counter Staff"] -->|"status updates, verification"| SYS
SYS -->|"queue by slot"| CS
MG["Canteen Manager"] -->|"menu, stock, slots"| SYS
SYS -->|"sales report"| MGToken logic: the token is the next number for that day, generated inside the same transaction that inserts the order, so two students never get the same token. unitPrice is copied into ORDER_ITEM so that a later price change does not alter old bills.
Module 01
Member A builds student registration and login with hashed passwords, the mobile-friendly menu page that hides out-of-stock items, and a JavaScript cart that shows the running total before checkout.
Module 02
Member A implements slot selection with cut-off and capacity checks, the transaction that decrements stock and generates the daily token, the order-status page, and the form where the student enters the 12-digit UPI transaction reference after paying.
Module 03
Member B builds the staff queue screen grouped by pickup slot, which refreshes every ten seconds with a small JavaScript fetch call, and the buttons that move a token through Preparing, Ready and Collected, plus the payment Verified tick.
Module 04
Member B builds the manager screens to add or edit menu items and prices, set the quantity available for each item for the day, and define pickup slots with start time, cut-off time and capacity.
Module 05
Member B writes the SQL queries and page for item-wise and slot-wise sales, unverified payments and cancelled orders for any date, with CSV download for the canteen's records.
Module 06
Both members share the role-check decorator, the common base template and CSS, and the pytest suite; each member writes tests for the functions they own and demonstrates them in the viva.
Slide 1
QuickBite: Canteen Pre-Order & Token System
Slide 2
The Short-Break Problem
Slide 3
Problem Statement
Slide 4
Proposed System
Slide 5
Objectives
Slide 6
Technology Used
Slide 7
Architecture & Database
Slide 8
Member A Modules
Slide 9
Member B Modules
Slide 10
Demo
Slide 11
Testing
Slide 12
Conclusion & Future Scope
Bullets, speaker notes and the .pptx · ₹2,000
Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.
Flask is a lightweight Python web framework that gives routing, request handling and Jinja2 templates without forcing a structure. For a small canteen app with seven tables it was easier to learn and explain than Django, and it let us write our own SQL, which we studied in the DBMS paper.
A primary key uniquely identifies each row, such as id in ORDERS. A foreign key refers to the primary key of another table, such as slotId in ORDERS pointing to PICKUP_SLOT. Foreign keys stop us from creating an order for a slot that does not exist.
SQL injection happens when user input is pasted into an SQL string so it changes the query, for example to log in without a password. We always use parameterised queries with PyMySQL placeholders, so the input is sent as data and never executed as SQL.
+11 more questions, with answers
Unlocks with the project · ₹2,000
Unlock for ₹2,000What to change before it goes anywhere near a submission. Skipping it is how the demo fails live.
Unlocks with the project · ₹2,000
Unlock for ₹2,000How to study it, adapt it and walk your examiner through it, step by step.
Unlocks with the project · ₹2,000
Unlock for ₹2,000OnlyProjects. (2026). College Canteen Pre-Order & Token System for the Short Break (Flask + MySQL): B.Sc Computer Science project bundle [Educational resource]. https://onlyprojects.online/projects/bsc-cs-college-canteen-preorder-token-system
Keep browsing
Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.
Computer Science
Dijkstra, Bellman-Ford and A* measured on 243 real stations, not toy graphs
Data Science
What five years of state-wise crash data say about where and why Indian roads kill — cleaned, tested and visualised
Electronics
A 2nd-order Butterworth design from equations to measured Bode plot, with component-tolerance repeats and an ngspice comparison
Environmental Science
Day and night Leq, L10 and L90 at twelve points across silence, residential, commercial and traffic zones, checked against the CPCB ambient noise standards
Statistics
Survey-weighted odds ratios for mother's education, wealth, sanitation and birth order, from unit-level NFHS-5 data in R
Zoology
Density, biomass and community of earthworms in 30 quadrats across cultivated, garden and fallow land, related to soil moisture, pH and organic matter