Behave and a very good proctor but he drives into too dept of project. Need to know your code so good
- Asked to write the route for register
Proctor workspace
Behave and a very good proctor but he drives into too dept of project. Need to know your code so good
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCamera pe clearly IITM/college ID dikhao — naam photo match.
Pehle se ID haath mein rakho. Glare mat aane do. Examiner screenshot/verify karta hai. Iske baad GitHub + project run.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpledata() local diary. Store school notice board.
Search query local. Logged-in user store. Persist: store + localStorage together.
state vs data: similar concept, scope alag.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
// local
data() { return { q: '' } }
// global
this.$store.state.userProject example: Login.vue local form fields. this.$store.state.user Navbar.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAJAX page reload ke bina server se data laata hai. Aaj kal fetch() + Promises.
fetch('/api/users').then(r => r.json()).then(data => { ... })
Promise: future value (pending/fulfilled/rejected). fetch Promise return karta hai.
SPA (Vue): ek HTML, baaki routes JS se, partial update. MAD1 generally full page render (Jinja) — submit pe poora refresh.
async/await Promise ka clean syntax.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive coding: notepad/editor mein chhota Flask route / Jinja loop / model field. Calm raho, run karke dikhao.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLevel = viva difficulty band. Level 1 usually demo + basics; higher pe live coding + deeper theory.
Viva tipJo level assign hai uske hisaab se demo + theory ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCamera pe clearly college/IITM ID dikhao — naam aur photo match hone chahiye.
Viva tipPehle se ID haath mein rakho, glare mat aane do. Iske baad GitHub + project run.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleonMounted / mounted = component DOM pe aa gaya. Yahan API fetch, Chart init. (Typo onmounded = onMounted)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache isliye taaki 100 users same dashboard pe DB ko 100 baar na maror dein.
Problem: repeated reads, slow page, extra load. Cache seconds ke liye snapshot deta hai.
Nahi use karna: har second badalne wala live stock, user-private secret data bina soch ke (key mein user_id hona chahiye).
Memoization caching ka subset hai (function args). HTTP 304 / browser cache alag layer.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: Shows list har user dekhta hai — perfect cache. Booking POST cache nahi — har baar write.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemodels.py = har table ki class: columns, PK/FK, relationships. Yeh Model layer hai.
Suggested flow1) Classes list karo
2) Har table ka kaam 1 line
3) Relationships (1-M / M-M)
4) Constraints (unique, nullable)
Example
class Lot(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80), nullable=False)
spots = db.relationship('Spot', backref='lot', lazy=True)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo public/private policy ke hisaab, MAD-1 collaborator add, commits dikhao.
Repo → Settings → Collaborators → instructor added.
Commits: git log / GitHub History — regular commits better, ek dum 1 commit suspicious.
README + report mein AI usage likha hona chahiye agar use kiya.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePayload = dabba ke andar samaan (body). JWT payload beech wala claims (encrypted nahi).
POST haan JSON. GET query string. JWT payload vs HTTP payload alag context.
HTTP verbs + status REST ki zabaan. GET read, POST create, PUT replace, PATCH partial, DELETE remove. GET typically no body.
Status: 200 OK, 201 created, 202 accepted (Celery task), 400 bad input, 401 no/bad token, 403 role nahi, 404 missing, 409 conflict (double book), 500 server.
AJAX/fetch page reload nahi. SPA poori isi pe. Postman se bina Vue ke API prove karo — examiner pasand.
Project example: request.get_json() create venue. Token payload user id jwt.io.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSQLAlchemy Python ka sabse popular ORM hai. MAD1 mein Flask-SQLAlchemy wrapper use hota hai.
db = SQLAlchemy(app)
class Book(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(80), nullable=False)
Operations: db.session.add(obj), .commit(), .delete(obj), Model.query.all(), .filter_by(), .get_or_404(id).
db.Model ek class hai (function nahi). db object engine + session + metadata hold karta hai.SQLALCHEMY_TRACK_MODIFICATIONS=False extra signals band karta hai, performance warning hatati hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.
Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
ORM se: User.query.get(5) ya db.session.get(User, 5)
Example model
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True)FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.
Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.
MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleORM = Object Relational Mapping. Tables → Python classes. Raw SQL kam likhte ho.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True)
User.query.get(5) # SELECT ... WHERE id=5
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplecommit changes save. rollback fail pe undo. Transaction consistency ke liye.
Example
try:
db.session.add(obj)
db.session.commit()
except Exception:
db.session.rollback()
raise
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleComponent = reusable UI piece (navbar, card, form). Props in, events out. Vue SFC ya Jinja macros/includes.
Viva tipParent-child: props down, emit/$emit up.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemodels.py = har table ki class: columns, PK/FK, relationships. Yeh Model layer hai.
Suggested flow1) Classes list karo
2) Har table ka kaam 1 line
3) Relationships (1-M / M-M)
4) Constraints (unique, nullable)
Example
class Lot(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80), nullable=False)
spots = db.relationship('Spot', backref='lot', lazy=True)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.
Example
/* button red */
.btn-primary { background: red; }
/* center navbar item */
.navbar { justify-content: center; }Viva tipDevTools se pehle try, phir file mein permanent change.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET /api/hello {message} Vue mounted {{ message }}. Fetch Hello World backend display.
Display backend message Hello.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Simplest full stack proof.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.
Example
/* button red */
.btn-primary { background: red; }
/* center navbar item */
.navbar { justify-content: center; }Viva tipDevTools se pehle try, phir file mein permanent change.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJOIN related tables ek result mein. Inner = match only; left = left side sab + match.
Example
db.session.query(Booking, User).join(User).filter(User.id == uid).all()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.
Suggested flow1) Portal ZIP download
2) Extract
3) venv + pip install -r requirements.txt
4) flask run / python app.py
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue.js frontend framework — reactive UI components. MAD2 mein common, MAD1 optional.
Component: reusable UI (Navbar.vue) + data + template.
Props: parent → child data. Child → parent: $emit('update', val).
Slots: parent child ke andar extra HTML daal sakta hai.
Lifecycle: created (data setup), mounted (DOM ready — API call), updated, unmounted.
v-model two-way bind. Vue Router SPA routes (routes.js). Vuex/Pinia global state; mutations sync change, actions async.
Standalone component: khud ke saath compile, parent register kam.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleList GET endpoints @cache. Not POST. Which routes are cached. Show cached API explain invalidation.
Why each.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: Open decorators.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSync line pe ruk jao (2+2). Async I/O pe wait karte hue baaki kaam chalte (fetch, Celery).
JS async ≠ Celery async jobs. Context se bolo.
Why async jobs: slow/scheduled/bulk off request thread.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Login sync hash check fast. Email Celery async. Vue fetch async.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleindex.html + main.js/index.js createApp use router store mount #app.
CDN: scripts in index. CLI: bundler inject.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
createApp(App).use(router).use(store).mount('#app')Project example: main.js 10 lines.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.
Suggested flow1) Portal ZIP download
2) Extract
3) venv + pip install -r requirements.txt
4) flask run / python app.py
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleComputed = lazy derived value. Ingredients na badlein to kitchen dobara nahi chalti.
Methods har render pe. Computed cache + dependency.
fullName, filteredList, isAdmin from role. Template {{ fullName }}.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.
Example
computed: {
fullName() { return this.first + ' ' + this.last }
}Project example: filteredVenues computed from query string. Watcher nahi chahiye tha.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplev-if element DOM se hataata/jodata hai, v-show sirf CSS display toggle karta hai.
v-if='isAdmin' → false ho to element exist hi nahi. Costly toggle, lekin hidden data DOM mein nahi.
v-show='open' → display:none. Fast toggle, element hamesha DOM mein.
Rare condition: v-if. Bar-bar toggle (dropdown): v-show.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpledata() local diary. Store school notice board.
Search query local. Logged-in user store. Persist: store + localStorage together.
state vs data: similar concept, scope alag.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
// local
data() { return { q: '' } }
// global
this.$store.state.userProject example: Login.vue local form fields. this.$store.state.user Navbar.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.
Example
spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLogin token create. Decorators protected APIs. JWT/Security init factory.
Where JWT authentication implemented backend. Show auth code.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: auth.py + decorators.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCamera pe college ID — naam photo match. Identity viva ki pehli gate.
Pehle se haath mein, glare nahi. Examiner screenshot. Phir GitHub + portal ZIP run.
Name GitHub/portal se mismatch red flag.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Project example: ID dikhao, bolo roll/name, phir screen share repo.
Viva tipPehle se ID haath mein rakho, glare mat aane do. Examiner screenshot/verify karta hai. Iske baad GitHub + project run.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRepo = evidence tumne kaam kiya: commits, collaborators, README.
Regular messages, last-day dump nahi. Private access pehle de do. Main branch submitted ZIP se match.
Collaborator settings. Commit dates.
Example
Settings → Collaborators: apna + teammate (agar allowed).
Commits: regular messages, last-day dump nahi.Project example: Settings → Collaborators. git log --oneline. README run steps.
Viva tipPrivate repo access de do pehle. Main branch latest submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleExaminer wohi ZIP chahta hai jo tumne submit kiya, local extra magic nahi.
Portal download → extract → redis, venv, pip, npm, flask, worker, beat.
Checksum maange to hash. Uncommitted files mat dikhana.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) ZIP
2) Extract
3) Redis + venv + pip
4) npm/vite
5) flask + celery worker + beat
Project example: Submitted zip run. README commands copy.
Viva tipChecksum maange to hash match karke dikhao. Extra uncommitted files mat dikhana.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSMTP + template + Celery. MailHog inbox dikhao, Gmail nahi chahiye.
Dynamic HTML user name. Live: schedule now.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Example
msg = Message(subject='Daily reminder', recipients=[user.email])
msg.html = render_template('reminder.html', user=user)
mail.send(msg)Project example: reminder.html Jinja. tasks send_mail.
Viva tipLive demo ke liye Celery beat crontab current time pe set karo, worker + beat dono chalu rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLogin flow pehle poochta hai "tu kaun hai?", token milne ke baad har API pe wohi proof dikhate ho.
Authentication step: Vue form email + password JSON POST karta hai. Flask user dhoondhta hai, check_password_hash se prove karta hai ki tum genuine ho. Galat 401. Sahi pe JWT + role milta hai — yeh session/token hai.
Vue localStorage (ya cookie) mein token rakhta hai, dashboard pe router.push. Aage ki har fetch header: Authorization: Bearer <token>. @jwt_required identity check (authentication). @roles_required('admin') permission check (authorization) — logged in ho, lekin allowed nahi to 403.
Validation alag cheez hai: empty email, password 8+ — form sahi bhara hai ya nahi. Woh identity prove nahi karta.
Logout = client token delete + login page. Server blacklist optional. Password response JSON mein kabhi mat bhejo.
Example
# Authentication
@app.route('/api/login', methods=['POST'])
def login():
u = User.query.filter_by(email=data['email']).first()
if not u or not check_password_hash(u.password, data['password']):
return jsonify(msg='bad'), 401
return jsonify(token=create_access_token(u.id), role=u.role)
# baad ki APIs
# Authorization: Bearer <token>
if current_user.role != 'admin':
abort(403)Project example: Login.vue POST /api/login → token LS → interceptor. Student token se admin route = 403. Empty form = validation, galat password = 401.
Viva tipNetwork tab mein password body dikhega localhost pe — prod HTTPS. Response mein hash/password echo mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleTables + lines (FK) + 1-M / M-M. Draw mentally, phir models.py.
Har class: PK, important columns, relationships. Why normalized (no duplicate venue name in every show as only string without FK).
Indexes search columns. Unique email. Cascade policy bookings pe.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: User-Role M-M. User-Booking 1-M. Venue-Show 1-M. Show-Booking 1-M.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple3–4 routes deep: auth, validation, status, cache? Method body response error.
Login, list, create. Why each.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Open resources, pick examiner's choice.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemounted fetch JSON v-for. Token header. Error banner. No Jinja loops except email.
Admin dashboard same + charts.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Network GET 200 JSON preview.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSession school id card office mein rakha. Token photocopy jo tum har baar dikhate ho.
Session: Set-Cookie, server store, MAD1 Flask-Login. CSRF risk cookies auto-send.
Token/JWT: SPA + alag port Vue/Flask, scale easy, mobile. XSS if localStorage.
MAD2 typically JWT/Flask-Security token. httpOnly cookie safer lekin CORS+CSRF extra.
Example
# session
login_user(user) # Set-Cookie
# token
return jsonify(token=create_access_token(identity=user.id))Project example: login jsonify token. Vue LS. MAD1 session cookie nahi dikhana unless used.
Viva tipToken localStorage XSS risk; httpOnly cookie safer. Session CSRF risk. MAD2 APIs ke liye JWT/Flask-Security token common.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLS / SS / memory / httpOnly cookie. Har request Authorization header.
Logout clear. XSS LS risk. Memory refresh lose.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Example
localStorage.setItem('token', data.token)
localStorage.removeItem('token')Project example: login.vue setItem. interceptor getItem. logout removeItem.
Viva tipSession Storage tab band pe saaf. Cookies expiry + httpOnly. Vuex memory refresh pe gayab — persist alag.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSPA + mobile + multiple APIs, server session memory nahi, scale.
Alag ports cookies pain CORS.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: Vue 8080 Flask 5000 Bearer.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplelogin.vue + backend login + decorator + LS. Show login/authentication code.
Show where authentication backend.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: 4 files.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRoles table, assignment, decorator, UI meta. Example admin vs user endpoint.
Admin authenticated AND authorized. User authenticated not authorized admin.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: roles_required admin stats. User 403 Postman.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSeed create_app user_datastore admin. Hash password. Role attach. Static env vs DB.
How admin created. Show code.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
if not User.query.filter_by(email='admin@x.com').first():
user_datastore.create_user(email='admin@x.com', password=hash_password('Admin@123'))Project example: if not User.query.filter admin: create.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleORM = translator. Python object bolo, woh SQL mein baat kare.
Object Relational Mapper. Class User ↔ table user. Raw SQL kam.
SQLAlchemy MAD1/MAD2. Fayde: portable SQLite→Postgres, relationships, parameterized queries (injection kam).
Nuksaan: N+1, hidden SQL, complex reports pe raw better.
Direct sqlite3 se SQLAlchemy isliye: models, switch DB, safer queries.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(128), unique=True)
User.query.filter_by(email='a@b.com').first()Project example: models.py db.Model. resources User.query.filter_by. Koi f-string SQL nahi.
Viva tipFayde: safe-ish, portable (SQLite→Postgres). Nuksaan: complex queries, N+1, leaky abstractions. Direct SQLite se SQLAlchemy isliye: models + injection protection + switch DB.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleModels relationships portable injection-safer than string SQL.
Why not directly sqlite3.
ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.
class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.
SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.
Bookings source of truth DB, Redis cache copy.
Project example: User.query vs cursor.execute f-string.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleForeign Key dusri table ki PK ki ungli pakadna. Relationship ka backbone.
user_id → user.id. Referential integrity. Unique extra ho sakta 1-1 ke liye.
Sirf UNIQUE se relationship nahi banti.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
user_id = db.Column(db.Integer, db.ForeignKey('user.id', ondelete='CASCADE'))Project example: booking.user_id, show.venue_id. models.py dikhao.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleForeign Key dusri table ki PK ki ungli pakadna. Relationship ka backbone.
user_id → user.id. Referential integrity. Unique extra ho sakta 1-1 ke liye.
Sirf UNIQUE se relationship nahi banti.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
user_id = db.Column(db.Integer, db.ForeignKey('user.id', ondelete='CASCADE'))Project example: booking.user_id, show.venue_id. models.py dikhao.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleFK hamesha valid parent. Constraint last line of defense.
Bina cascade parent delete IntegrityError. App 400 'reassign first'.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Booking.user_id must exist. Demo delete user with bookings.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleFK hamesha valid parent. Constraint last line of defense.
Bina cascade parent delete IntegrityError. App 400 'reassign first'.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Booking.user_id must exist. Demo delete user with bookings.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCASCADE = parent gaya to bacche bhi. Restrict = pehle bacche sambhalo.
ON DELETE CASCADE SQL. SQLAlchemy cascade='all, delete-orphan' collection se orphans.
Opposite auto nahi — child delete se parent nahi marata.
Venue delete: bookings restrict (safer viva) ya cascade+cancel policy. Examiner design poochta hai.
ON UPDATE CASCADE PK change — rare. SET NULL, RESTRICT bhi options.
Example
shows = db.relationship('Show', cascade='all, delete-orphan', back_populates='venue')Project example: Show belongs Venue delete-orphan. Booking venue pe restrict — 'reassign first'.
Viva tipVenue delete pe bookings: restrict (mat delete) ya cascade+refund policy. Examiner design poochta hai. Cascade UPDATE bhi hota hai (PK change) — rare.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDepends ondelete: CASCADE children jaate, RESTRICT fail, SET NULL.
Bookings/venue: business. Soft-delete safer. Doctor deleted similarly.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Explain YOUR models ondelete. Don't guess opposite cascade.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleParent delete IntegrityError if children. Handle 400 reassign first.
If ON DELETE CASCADE not used.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Demo fail delete venue with shows.
Project example: Demo fail delete venue with shows.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple1-M User-Booking, M-M User-Role. Count honestly. What relationships used in models.
Is 1-1? Honest.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Draw.
Project example: Draw.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleHaan Redis routes X demo hit miss. Nahi: kaise add karte — decorator + redis + invalidation.
Don't lie. Examiner code dekhega.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: If yes open decorator. If no 4-step plan.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.
Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.
Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.
Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.
Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.
Example
@cache.cached(timeout=50, query_string=True)
@app.route('/api/shows')
def shows():
return jsonify([s.serialize() for s in Show.query.all()])Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').
Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache isliye taaki 100 users same dashboard pe DB ko 100 baar na maror dein.
Problem: repeated reads, slow page, extra load. Cache seconds ke liye snapshot deta hai.
Nahi use karna: har second badalne wala live stock, user-private secret data bina soch ke (key mein user_id hona chahiye).
Memoization caching ka subset hai (function args). HTTP 304 / browser cache alag layer.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: Shows list har user dekhta hai — perfect cache. Booking POST cache nahi — har baar write.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDecorator + Redis ping + invalidation line + miss/hit demo idea.
Kaunsi routes, timeout, key_prefix, query_string. POST pe nahi.
print after set sirf miss. Timeout chhota karke expiry.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: resources list GET cached. create_venue delete key.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMiss print/DB, hit silent, timeout expiry, write delete.
Best viva demo Redis.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Example
@cache.cached(timeout=30, key_prefix='venues')
def get_venues():
print('DB queried')
return jsonify(...)Project example: GET twice + POST + GET.
Viva tipprint() ya SQL echo se miss/hit dikhao. Timeout 10–30s karke expiry bhi demo kar sakte ho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleHit = Redis ke paas jawab already hai. Miss = pehle DB se lana padega.
Hit pe database queried nahi hota — yahi examiner prove karwana chahta hai.
Typical flow:
1) cache.get(key)
2) mila to return (hit)
3) nahi mila to query + cache.set + return (miss)
Timeout ke baad key expire = next request phir miss. cache.clear() sab hataata hai, cache.delete(key) sirf ek route.
Example
data = cache.get('venues')
if data:
return data # hit
data = Venue.query.all() # miss
cache.set('venues', data, timeout=30)
return dataProject example: Pehli GET /api/venues — terminal mein SQL/print. Doosri GET turant — koi DB log nahi.
Viva tipHit pe database queried nahi hota. print() after set sirf miss pe chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleList GET endpoints @cache. Not POST. Which routes are cached. Show cached API explain invalidation.
Why each.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: Open decorators.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.
Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.
Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.
Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.
Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.
Example
@cache.cached(timeout=50, query_string=True)
@app.route('/api/shows')
def shows():
return jsonify([s.serialize() for s in Show.query.all()])Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').
Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpledata() local diary. Store school notice board.
Search query local. Logged-in user store. Persist: store + localStorage together.
state vs data: similar concept, scope alag.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
// local
data() { return { q: '' } }
// global
this.$store.state.userProject example: Login.vue local form fields. this.$store.state.user Navbar.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleFast kyunki RAM + simple commands, joins nahi.
Disk seek milliseconds, RAM microseconds. Redis single-threaded lekin har op chhoti.
Compare: SQLite file lock writes pe. Redis in-memory SET. Persistence RDB/AOF extra, default viva mein RAM.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: Same JSON cache vs query.join — Network timing dikhao.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSync line pe ruk jao (2+2). Async I/O pe wait karte hue baaki kaam chalte (fetch, Celery).
JS async ≠ Celery async jobs. Context se bolo.
Why async jobs: slow/scheduled/bulk off request thread.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Login sync hash check fast. Email Celery async. Vue fetch async.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleIsliye ki user wait na kare, retry mil jaaye, 6pm automatic ho jaaye.
Slow work (mail, CSV, PDF) request se alag. Schedule crontab. Scale = aur workers.
JS async/await alag cheez hai (browser event loop). Celery server-side process.
Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.
Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.
MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.
Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.
Project example: Reminder 6pm, monthly 1st, export button. Teen alag tasks.py functions.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGentle curve, SFC, docs, reactivity, chhota vs Angular. Over React: HTML templates, course.
Over plain JS: components router ecosystem.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id → $route.params.id.
Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.
Project example: Justify Vue not React: taught + time.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLifecycle = component ki zindagi ke stages. API call tab jab DOM ready ho — mounted.
created: instance bani, this data, DOM nahi. mounted/onMounted: page pe aa gaya — fetch, Chart.js, setInterval.
updated: data change ke baad. unmounted: cleanup (clearInterval) warna memory leak.
Dashboards onMounted isliye: canvas/API tab valid. created mein $el nahi.
Composition: onMounted(() => {}) setup ke andar.
Example
export default {
async mounted() {
const r = await fetch('/api/venues')
this.venues = await r.json()
}
}Project example: Venues.vue mounted fetch list. Clock component unmounted pe interval clear.
Viva tipcreated: data setup, DOM nahi. mounted/onMounted: $el mil gaya — fetch yahi. Dashboards isliye onMounted use karti hain.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleComponent Lego block: UI + data. Pages routes, components unke andar.
Bahut files = maintainable Navbar/Footer. Not a bug.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.
Example
app.component('Hello', { template: '<p>Hi {{ name }}</p>', props: ['name'] })Project example: src/components vs views. router uses views.
Viva tipBahut Vue files isliye: har page/feature alag — maintainable. Navbar layout har route pe.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleReuse Navbar split test. Why need components.
Many files OK.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.
Project example: Navbar Footer Card.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProps parent ki thali child ko dena. Child thali tod ke parent ki thali na badle — emit bolo.
Declare props, parent :venue="v". One-way. Mutate mat. Types/required Vue 3.
List parent, card child — classic viva.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.
Example
<VenueCard :venue="v" @select="onSelect" />
props: ['venue']
this.$emit('select', this.venue.id)Project example: VenueCard :venue. Child $emit('select', id).
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleComputed = lazy derived value. Ingredients na badlein to kitchen dobara nahi chalti.
Methods har render pe. Computed cache + dependency.
fullName, filteredList, isAdmin from role. Template {{ fullName }}.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.
Example
computed: {
fullName() { return this.first + ' ' + this.last }
}Project example: filteredVenues computed from query string. Watcher nahi chahiye tha.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleTwo-way = UI aur data sync. Vue mein v-model. One-way mustache/v-bind.
Parent→child props one-way. Child change emit se. v-model on component = prop + emit update.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Booking qty input v-model. Seats left sirf {{ available }}.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleonMounted = Composition API ka mounted. setup() ke andar call.
Options API: mounted() method. Mix mat. Vue 3 dono chalte.
Lifecycle = component ki zindagi: created (instance, DOM nahi) → mounted/onMounted (DOM ready — fetch, Chart.js yahi) → updated → unmounted (clearInterval).
Dashboard API created mein isliye nahi ki $el/canvas missing ho sakta. Composition API: onMounted(() => {}) setup ke andar. Options: mounted() method. Mix mat.
Examiner 'konsa hook use kiya' — related .vue kholo, line padh ke bolo.
Example
import { onMounted, ref } from 'vue'
const items = ref([])
onMounted(async () => {
items.value = await (await fetch('/api/items')).json()
})Project example: script setup: onMounted(loadStats).
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplev-if ghar se nikaal deta hai (DOM se). v-show sirf light band karta hai (display:none).
v-if false → element exist hi nahi — costly create/destroy, lekin secret HTML DOM mein nahi.
v-show → hamesha DOM, CSS hide, toggle tez.
Rare / permission UI: v-if (admin panel). Dropdown bar-bar: v-show.
: shorthand v-bind ka, v-if ka nahi.
Example
<div v-if="isAdmin">Admin panel</div>
<div v-show="open">Dropdown</div>Project example: Admin links v-if="role==='admin'". FAQ accordion v-show="open".
Viva tipSecurity ke liye sirf v-if kaafi nahi — API 403 bhi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplev-for="(item,i) in items" :key="item.id". Write syntax for v-for.
Don't forget key.
Directives Vue ke special attributes hain — HTML ko superpower: v-if/v-show, v-for, v-bind (:), v-on (@), v-model.
v-if DOM se hataata/jodta. v-show sirf CSS display. Rare/permission: v-if. Bar-bar toggle: v-show. v-model two-way form. v-bind one-way JS→attribute.
:key v-for pe zaroori warna Vue galat reuse. v-html XSS. Secret UI ke liye sirf v-if kaafi nahi — API 403 bhi.
MAD1 Jinja server HTML. MAD2 yeh directives browser mein reactive.
Project example: Notepad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleindex.html + main.js/index.js createApp use router store mount #app.
CDN: scripts in index. CLI: bundler inject.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
createApp(App).use(router).use(store).mount('#app')Project example: main.js 10 lines.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleEntry mount #app. How Vue connected index.html.
CDN vue global + app.js. CLI only div#app.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id → $route.params.id.
Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.
Example
createApp(App).use(router).use(store).mount('#app')Project example: index.html.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGuard darwaza: token nahi to login. Role nahi to 403 page.
beforeEach. Frontend UX. Backend @jwt_required bina guard hack possible — dono layers.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
router.beforeEach((to) => {
if (to.meta.auth && !localStorage.getItem('token')) return '/login'
})Project example: router.beforeEach token localStorage. Admin routes meta.role.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple
<a href> links. Vue router-link better SPA. External target=_blank. Anchor tag.What is the Anchor tag.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Don't <a href=/dashboard> full reload if SPA.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple
<button type=button> vs submit form. Vue @click. Create a Button tag.type important.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: <button class=btn @click=save>
Project example: <button class=btn @click=save>
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleYes REST. List 5. Postman. Local APIs vs REST: MAD2 REST JSON.
Did you create backend APIs? Yes examples.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: resources.py.
Project example: resources.py.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple/ hello world string or json. Write simple Hello World Flask route.
@app.route.
Flask Python micro web framework. Route decorator URL → function. MAD2 mein JSON API: request.get_json(), jsonify, JWT.
WSGI: server (Werkzeug) app ko call. if __name__ == '__main__' sirf direct run. Factory create_app() test/celery ke liye.
Blueprint/resources folders. @app.route vs MethodView. Debug=True viva local, prod nahi. CORS alag port Vue ke liye.
Example
@app.route('/hello')
def hello():
return jsonify(message='Hello World')Project example: Notepad or app.py.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleNaya Flask route: URL, method, auth if needed, query, jsonify. Postman pehle.
Examiner number/filter change easy rakhna. CORS. Frontend tabhi jab bole.
Status codes sahi. Password JSON mein nahi.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Example
@app.route('/api/sum', methods=['POST'])
def sum_num():
d = request.get_json()
return jsonify(result=d['a'] + d['b'])Project example: resources.py new Resource. Test Thunder. Optional Vue fetch.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemounted fetch JSON v-for. Token header. Error banner. No Jinja loops except email.
Admin dashboard same + charts.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Network GET 200 JSON preview.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleviews/Foo.vue + routes.js + link. Fetch mounted.
Connect new page.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id → $route.params.id.
Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.
Project example: Live.
Project example: Live.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET /api/hello {message} Vue mounted {{ message }}. Fetch Hello World backend display.
Display backend message Hello.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Simplest full stack proof.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplefunction full(a,b){return a+' '+b}. Write JS firstname lastname combined. Combine first last.
Template string OK.
JS browser ki language. const rebind nahi, let block. Arrow () => this lexical.
Promise: pending/fulfill/reject. async/await usko seedha padhne jaisa. try/catch await pe. Yeh Celery nahi — Celery Python worker.
fetch native AJAX. array.filter/map computed lists. Vue data reactive; plain JS DOM querySelector se manual.
Project example: console.log(full('A','B')).
Project example: console.log(full('A','B')).
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplev-model.number a b {{a+b}}. Write Vue code add two numbers display.
Don't string concat — .number.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id → $route.params.id.
Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.
Example
<input v-model.number="a"><input v-model.number="b">
<p>{{ a + b }}</p>Project example: tiny component.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleget id, filter blacklisted, unapproved, easy flag. Same Query API. Write SQLAlchemy query retrieve user by id blacklisted unapproved easy treks.
db.session.get(User,id) SQLA2.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
User.query.get(id)
User.query.filter_by(blacklisted=True)
Drive.query.filter_by(approved=False)Project example: flask shell.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSach % + kahan + kaise verify + kya seekha. Report se contradict mat.
Boilerplate vs business logic. Examiner process poochta. 'Sab ChatGPT' red flag.
Verify: docs, run, edge case. Seekha: CORS, JWT exp, beat vs worker.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Jo number form/PDF mein hai wahi. Example file jo AI se start kiya, khud debug kiya.
Viva tipExaminer 'kya seekha / kaise check kiya' pe marks. 'Sab ChatGPT' red flag. Jo khud debug kiya woh story ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplecreated_at updated_at DateTime utcnow. Dashboard format. How implemented timestamps.
Add timestamp column live.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
created_at = db.Column(db.DateTime, default=datetime.utcnow)Project example: Booking.created_at.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePayload = dabba ke andar samaan (body). JWT payload beech wala claims (encrypted nahi).
POST haan JSON. GET query string. JWT payload vs HTTP payload alag context.
HTTP verbs + status REST ki zabaan. GET read, POST create, PUT replace, PATCH partial, DELETE remove. GET typically no body.
Status: 200 OK, 201 created, 202 accepted (Celery task), 400 bad input, 401 no/bad token, 403 role nahi, 404 missing, 409 conflict (double book), 500 server.
AJAX/fetch page reload nahi. SPA poori isi pe. Postman se bina Vue ke API prove karo — examiner pasand.
Project example: request.get_json() create venue. Token payload user id jwt.io.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAvoid GET body. Query string filters. Some clients strip GET body.
Does GET have payload? Shouldn't.
HTTP verbs + status REST ki zabaan. GET read, POST create, PUT replace, PATCH partial, DELETE remove. GET typically no body.
Status: 200 OK, 201 created, 202 accepted (Celery task), 400 bad input, 401 no/bad token, 403 role nahi, 404 missing, 409 conflict (double book), 500 server.
AJAX/fetch page reload nahi. SPA poori isi pe. Postman se bina Vue ke API prove karo — examiner pasand.
Project example: Search ?q=.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleYes typically JSON/form. request.get_json().
Does POST have payload? Yes.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: login body email password.
Project example: login body email password.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet