How harishkumar1112001/online-test-application works
Project type and purpose
• This is a full‑stack web application (“Online Test Application”) that lets users sign up, read rules, answer a set of quiz questions, and then persists their final score to a MongoDB database.
• The frontend uses plain HTML/CSS/JavaScript (templates in /templates, CSS in /style, client scripts in /modules). The backend is Node.js (entrypoint index.js) serving pages and handling REST‑style endpoints. MongoDB stores user and score data.
File structure
• Top‑level:
• index.js (your Express server entrypoint; implied by README’s node index.js)
• /templates – HTML view files (about, signup, question pages, etc.)
• /style – CSS files for each page plus a global stylesheet
• /modules – server‑side modules (signup.js handles registration logic; script.js handles quiz logic and scoring)
• /assets (and /Images) – static images and screenshot/flowchart
• package.json / package-lock.json – Node dependencies
• Config/deployment: .gitignore, .vscode, LICENSE
README for additional insights
• Technology stack explicitly spelled out: HTML, CSS, JS frontend; Node.js/Javascript backend; MongoDB database.
• There’s a flowchart in /assets showing user signup → rules page → quiz questions → score display → DB update.
Elements
• Clear, descriptive labels for each component (e.g., “Express App (index.js)”, “Signup Module”, “Quiz Module”, “MongoDB Atlas”)
• Browser → Server (HTTP GET/POST)
• Server → Database (CRUD operations)
• Server → Browser (HTML/JSON responses)