{"id":20229911,"url":"https://github.com/kishore-sr/dbms-quiz","last_synced_at":"2026-01-05T10:04:22.163Z","repository":{"id":248925498,"uuid":"830167269","full_name":"Kishore-SR/DBMS-Quiz","owner":"Kishore-SR","description":"This mini project was built as a part of our DBMS subject assignment.","archived":false,"fork":false,"pushed_at":"2024-07-18T15:23:24.000Z","size":176,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T21:11:46.637Z","etag":null,"topics":["css","html","javascript","nodejs","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kishore-SR.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-17T18:18:09.000Z","updated_at":"2024-09-19T16:59:13.000Z","dependencies_parsed_at":"2024-07-18T00:05:24.265Z","dependency_job_id":"7b25ab4e-2770-4bd3-a93e-3fb0a8386bd7","html_url":"https://github.com/Kishore-SR/DBMS-Quiz","commit_stats":null,"previous_names":["kishore-sr/dbms-quiz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kishore-SR%2FDBMS-Quiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kishore-SR%2FDBMS-Quiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kishore-SR%2FDBMS-Quiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kishore-SR%2FDBMS-Quiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kishore-SR","download_url":"https://codeload.github.com/Kishore-SR/DBMS-Quiz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245119574,"owners_count":20563763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","html","javascript","nodejs","sqlite3"],"created_at":"2024-11-14T07:37:31.973Z","updated_at":"2026-01-05T10:04:22.137Z","avatar_url":"https://github.com/Kishore-SR.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DBMS Quiz App\n\nThis project is a quiz application built using HTML, CSS, JavaScript for the frontend, and Node.js with SQLite for the backend and database management. The application allows students to take quizzes on different modules, view their scores, and provide feedback.\n\n[![Preview Website](https://img.shields.io/badge/Preview%20Website-37a779?style=for-the-badge)](#screenshots)\n\n## Key Features\n\n- **Quiz Functionality:** Allows students to take quizzes on different modules.\n- **Score Management:** Stores and retrieves quiz scores from the database.\n- **Feedback System:** Collects and stores feedback from students.\n- **Responsive Design:** Ensures a good user experience on both desktop and mobile devices.\n\n## Technologies Used\n[![HTML5](https://img.shields.io/badge/html5%20-%23E34F26.svg?\u0026style=for-the-badge\u0026logo=html5\u0026logoColor=white)](/)\n[![CSS3](https://img.shields.io/badge/CSS3-%231572B6.svg?style=for-the-badge\u0026logo=css3\u0026logoColor=white)](/)\n[![JavaScript](https://img.shields.io/badge/javascript%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=javascript\u0026logoColor=%23F7DF1E)](/)\n[![SQLite](https://img.shields.io/badge/SQLite-%2307405e.svg?style=for-the-badge\u0026logo=sqlite\u0026logoColor=white)](/)\n[![Node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)](/)\n\n\n## How to Run ⚙\n\n1. **Clone the Repository:**  \n   ```bash\n   git clone https://github.com/Kishore-SR/DBMS-Quiz.git\n2. **Install Dependencies:**  \nEnsure you have Node.js and SQLite installed.\n    ```bash\n    $ pip install sqlite3\n3. **Navigate to Project Directory:**  \n    ```bash\n   $ cd DBMS-Quiz\n4. **Run the Application:**  \n    ```bash\n    $ node server.js\n5. **Access the Website:**  \nOpen your web browser and go to [http://localhost:3000/](http://localhost:3000/).\n\n## API Endpoints\n\n### Save Student\n\n- **POST** `/api/saveStudent`\n  - **Request Body:**\n    ```json\n    {\n      \"name\": \"Student Name\",\n      \"usn\": \"Student USN\"\n    }\n    ```\n  - **Response Body:**\n    ```json\n    {\n      \"studentId\": 1\n    }\n    ```\n\n### Fetch Questions\n\n- **GET** `/api/questions/:module`\n  - **Response Body Example:**\n    ```json\n    [\n      {\n        \"id\": 1,\n        \"question\": \"Sample question 1?\",\n        \"options\": [\"Option A\", \"Option B\", \"Option C\", \"Option D\"],\n        \"correctAnswer\": 0\n      },\n      {\n        \"id\": 2,\n        \"question\": \"Sample question 2?\",\n        \"options\": [\"Option A\", \"Option B\", \"Option C\", \"Option D\"],\n        \"correctAnswer\": 1\n      },\n    ]\n    ```\n\n### Save Score\n\n- **POST** `/api/saveScore`\n  - **Request Body:**\n    ```json\n    {\n      \"studentId\": 1,\n      \"module\": 1,\n      \"score\": 5\n    }\n    ```\n  - **Response Body:**\n    ```json\n    {\n      \"message\": \"Score saved successfully\"\n    }\n    ```\n\n### Save Feedback\n\n- **POST** `/api/saveFeedback`\n  - **Request Body:**\n    ```json\n    {\n      \"studentId\": 1,\n      \"module\": 1,\n      \"rating\": 5,\n      \"feedback\": \"Thank you!\"\n    }\n    ```\n  - **Response Body:**\n    ```json\n    {\n      \"message\": \"Feedback saved successfully\"\n    }\n    ```\n\n\n## Screenshots\n##### **Student Registration:** Enter name and USN\n![image](https://github.com/user-attachments/assets/64ad709f-5b1b-4eaa-9dfc-ef0565f83dec)\n\n##### **Module Selection:** Choose from 5 modules\n![image](https://github.com/user-attachments/assets/913b2819-6c14-474a-9d0c-0535a614990b)\n\n##### **Questions Database:** Questions are fetched from database\n![image](https://github.com/user-attachments/assets/bb89245c-7176-4633-a564-373d06593ef6)\n\n##### **Quiz Interface:** Questions with options\n![image](https://github.com/user-attachments/assets/d04cfa3a-489a-4df4-a1a7-bd4160eb56b3)\n\n##### **Feedback Form:** 5-star rating and comments \n![image](https://github.com/user-attachments/assets/1450626f-db01-4f98-8b82-01832952bfc3)\n\n##### **Students Database:** Student details gets updated automatically\n![image](https://github.com/user-attachments/assets/ce5e2d6f-d755-41a4-bf9e-4a3fcf9b1db0)\n\n##### **Feedback Database:** Feedback will be stored separately\n![image](https://github.com/user-attachments/assets/3a2c2518-ef41-4b66-a39c-489cb8aa0b1f)\n\n## Connect Here\n[![LinkedIn](https://img.shields.io/badge/linkedin%20-%230077B5.svg?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/Kishore-SR) \u0026nbsp;\n[![YouTube](https://img.shields.io/badge/Youtube-%23FF0000.svg?style=for-the-badge\u0026logo=YouTube\u0026logoColor=white)](https://www.youtube.com/@Kishore-SR) \u0026nbsp;\n[![Gmail](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\u0026color=red)](mailto:kishoresr47@gmail.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkishore-sr%2Fdbms-quiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkishore-sr%2Fdbms-quiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkishore-sr%2Fdbms-quiz/lists"}