How praveen7230/simple-quiz-app works
Project type and purpose
• This is a simple client-server prototype web application consisting of:
• A static front-end (HTML, CSS, vanilla JS, images)
• A mock JSON REST API backend served by JSON Server (Node.js)
• Purpose: Demonstrate front-end interactions with a REST API backed by a JSON file (db.json).
File structure
• Top-level assets:
• index.html – entry point for the UI
• styles/bootstrapcss.css – styling (Bootstrap)
• scripts/script.js – front-end logic & HTTP calls
• images/ – static assets
• readme.txt – usage instructions
• .vscode/ – IDE configs (ignore in architecture)
• Backend (“localserver” folder):
• package.json / package-lock.json – JSON Server dependencies
• node_modules/ – installed modules
• db.json – the JSON file acting as the data store
• No additional microservices or build scripts; it is a simple two-component system.
README for additional insights
• Instructs to run npm start inside localserver → starts JSON Server on default port (3000)
• Then open index.html directly in browser to consume API endpoints
• No build step for the front-end (static files served from local file system)
Elements
• Clear labels:
• “Front-end (Browser)” – index.html, script.js, styles/
• “JSON Server (Node.js/Express)” – localserver/package.json
• “Data Store” – localserver/db.json
Final advice
• Be as detailed as possible: label ports, HTTP methods, file locations
• Moving parts: static assets, JS logic, runtime server, data file
• Keep it simple: two main components plus data store, connected by HTTP