Inspiration
At university, we get a course outline for every course at the start of every semester. That single document contains everything we are going to study—yet after asking around, I realized about 90% of students barely open it. Most outlines are messy .docx tables or dense PDFs packed with grading rules, dates, and repeated objectives. As a result, students stay in the dark all semester, and every new topic catches us off guard right before quizzes, Midterms, and Finals.
I wanted a completely free, zero-friction tool that any student could open without signing up, drop their outline into, and immediately see what the course is actually about—and what kind of questions show up in DIU exams.
What It Does (Smallest Possible Product)
DIU Outline Mapper solves one focused problem on one single screen:
- Upload or Paste Anything: Drag and drop a
.docxor.pdfcourse outline (or paste raw text). - Clean Course & Topic Map: Extracts the course code, title, a short plain-English course overview, and a clean numbered list of study topics—stripping out dates, attendance policies, and duplicate lines.
- Spot Exam-Important Topics: Highlights topics that actually appeared in past DIU Software Engineering (
SWE) exams with anExam Topicbadge and lets you filter down to exam-tested topics in one click. - Understand & Practice on Demand: Clicking any topic loads a 2–3 sentence beginner-friendly explanation alongside matching past DIU Midterm and Final questions (with batch, exam type, question number, marks, and properly rendered math equations).
Note: Topic mapping and explanations work for **any* course outline. Curated past exam question lookup currently covers 165 real DIU SWE questions (batches 252–263) across SE113 (Introduction to Software Engineering), SE111 (Computer Fundamentals), MAT101 (Mathematics I), and PHY101 (Physics-I).*
Why It Fits "Smallest Possible Product"
There are no accounts, no login walls, no multi-page menus, no databases, and no unrelated study widgets. Everything—input, course summary, topic map, exam filter, explanations, and past questions—happens on one screen.
How I Built It
- Backend (
app.py): Built with Python and Flask. Usespython-docx(iter_inner_content()) to read both paragraphs and table rows in exact document order while deduplicating merged cells, andpypdffor PDF text extraction (with guards for encrypted or scanned-image PDFs). - AI Extraction & Explanations: Uses the official
google-genaiSDK with a model fallback chain (gemini-3.5-flash-lite→gemini-3.6-flash→gemini-3.8-flash) so temporary server spikes don't break the demo. - Exam Question Matching (
questions.json): Stores 165 curated past DIU questions tagged with topic keywords. Python normalizes course codes (e.g.,SE 113→SE113), matches topics againstquestions.json, and attaches matching exam questions directly inside each topic card. - Frontend (
templates/index.html): Vanilla HTML, CSS, and JavaScript with a dark-first Obsidian & Champagne theme (plus a Light mode toggle), drag-and-drop upload, an inline About coverage panel, and KaTeX soMAT101andPHY101equations render cleanly instead of breaking in plain text. - Hosting: Deployed with
gunicornon Render's free tier (note: free-tier instances sleep after 15 minutes of inactivity, so the first load can take ~30–50 seconds to wake up).
Challenges I Ran Into
- Messy
.docxTables: Real DIU outlines store weekly topics inside merged Word tables, which simple paragraph-only readers miss completely. Iterating block-by-block and deduplicatingcell._tcsolved this. - False Keyword Matches on Exam Badges: Initially, broad single words like "energy" or "acceleration" caused 13 out of 14
PHY101topics to be flagged as exam topics. Tightening stop-word filtering and requiring multi-word or specific keyword matches made theExam Topicfilter genuinely useful. - Complex Math Questions (
MAT101/PHY101): Piecewise functions, fractions, and nested roots looked unreadable in plain text. Switching those questions to double-escaped LaTeX inquestions.jsonand integrating KaTeX made them readable like an actual exam paper. - API & JSON Quirks: Handled deprecated/overloaded Gemini models with automatic fallback, and built defensive JSON parsing to strip Markdown code fences if the AI adds extra formatting.
What I Learned
Coming into this hackathon knowing only basic HTML/CSS, C, C++, and beginner Python, I used AI-assisted ("vibe") coding to generate most of the implementation while I directed every feature, reviewed the code, tested it on real outlines, and iterated on the UI and logic until it matched my vision. Along the way, I learned how the browser and server talk to each other: GET vs POST routes, FormData file uploads vs JSON requests, HTTP status codes (200, 400, 413, 422, 503), environment variables for keeping API keys secret, and deploying a live Flask app.
What's Next
- Expand
questions.jsonto cover more SWE core courses across later semesters. - Share it with classmates at DIU and pitch it to my Software Engineering department as a free student-built tool for incoming batches.
AI Tools & Third-Party Resources Disclosure
- AI Coding Assistance: Most of the code in
app.pyandtemplates/index.htmlwas drafted by AI coding assistants (including Google Gemini) under my direction. My role was defining the product vision, reviewing the generated code, requesting and applying changes to match how I wanted the app to look and behave, integrating the pieces locally and on Render, testing with real DIU course outlines, and manually curating and verifying all 165 past exam questions inquestions.json. - Google Gemini API (
google-genai): Used at runtime to parse messy outlines into structured topics and generate short explanations. - Third-party libraries/services: Flask,
python-docx,pypdf,python-dotenv,gunicorn, KaTeX (via jsDelivr CDN), and Render.
Built by Md. Tamjid Islam Taufique (ID: 262-35-065, Dept. of SWE).