Hereβs a README.md file for your app. It provides an overview of the project, instructions for setup, and details about features and usage.
COSTUDY Quiz App π
Welcome to COSTUDY, an interactive quiz app designed to test your knowledge of computer architecture! This app features a dynamic quiz experience with timers, animations, sound effects, and confetti celebrations for correct answers.
Features β¨
- Interactive Quiz: Answer multiple-choice questions with a timer for each question.
- Real-Time Feedback: Get instant feedback on whether your answer is correct or incorrect.
- Score Tracking: Track your correct and incorrect answers throughout the quiz.
- Confetti Animation: Celebrate correct answers with a fun confetti animation.
- Sound Effects: Play sound effects for correct and incorrect answers.
- Progress Bar: Visualize your progress through the quiz.
- Responsive Design: Works seamlessly on desktop and mobile devices.
- Restart Quiz: Easily restart the quiz to try again.
Technologies Used π οΈ
- Svelte: A modern JavaScript framework for building user interfaces.
- Svelte Confetti: A library for adding confetti animations.
- CSS: Custom styles for a modern and visually appealing design.
- JavaScript: Logic for quiz functionality, timers, and animations.
- Fetch API: Load quiz questions from an external API.
Setup Instructions π
Prerequisites
- Node.js and npm installed on your machine.
Steps
Clone the Repository:
git clone https://github.com/Unrealrojo234/costudy
cd costudy
Install Dependencies:
npm install
Run the App:
npm run dev
Open in Browser:
Visit http://localhost:5173
(or the port specified in your terminal) to view the app.
Usage π
Start the Quiz:
- Once the app loads, the quiz will begin automatically.
- Each question has a 15-second timer.
Answer Questions:
- Select an option by clicking on it.
- Youβll receive instant feedback on whether your answer is correct or incorrect.
Track Your Progress:
- The progress bar at the top shows how far youβve progressed in the quiz.
- Your score (correct and incorrect answers) is displayed below the question.
Complete the Quiz:
- After answering all questions, youβll see your final score.
- Click the Restart Quiz button to try again.
Customization π¨
Change Quiz Topic:
- Update the
computerArchitecture
URL in the script to fetch questions from a different API.
Add More Questions:
- Modify the API response or use a local JSON file with your own questions.
Customize Styles:
- Edit the
style
section in the Svelte file to change colors, fonts, or animations.
Screenshots πΈ

Contributing π€
Contributions are welcome! If youβd like to improve this project, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
).
- Commit your changes (
git commit -m 'Add some feature'
).
- Push to the branch (
git push origin feature/your-feature
).
- Open a pull request.
License π
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments π
Enjoy the quiz! π
If you have any questions or feedback, feel free to open an issue or reach out.