Welcome to CodeQuest, the quiz game that's more addictive than trying to fix a bug at 3 AM! Born from the cosmic depths of OpenEHR Quest which in turn was originally created as part of an internal company presentation at Cistec., CodeQuest is here to turn your boring old quiz into a thrilling adventure through the realms of knowledge!
- 🧠 Dynamic Question Loading: Questions appear like magic, no rabbit (or developer) required!
- ⏱️ Time-based Challenges: Race against the clock! (It's totally cool to pretend you're defusing a bomb)
- 🏋️ Difficulty Levels: From "I just learned to code" to "I dream in binary"
- 🎨 Snazzy Code Highlighting: Making your code snippets look prettier than a sunset
- 🔊 Sound Effects: Auditory dopamine hits for your correct answers!
- 🎖️ Badges: Award badges for completing levels and mastering the game
- 🎊 Confetti: Celebrate your achievements with a rainbow of confetti!
- 🏆 Score Sharing: Brag about your big brain energy on social media
- 📱 Responsive Design: Looks great on everything from your smartwatch to your smart fridge
- 🧙♂️ Question Generation: Generate question creation prompts to use with your favorite LLM!
- 📝 Markdown Support: Write questions and answers in Markdown for easy formatting
- 🔥 Code Snippets: Include code snippets to test your knowledge
- 🖼️ Images: Include images to spice up your questions
- 🧩 Multiple Choice: Create questions with multiple answer options
- ⏳ Time Limits: Set time limits for each question to keep players on their toes
- 🔢 Difficulty Levels: Assign difficulty levels to questions
- 💡 Hints: Provide hints for when players get stuck
- 📚 Explanations: Give detailed explanations for answers to enhance learning
Check out example-question.md
for a comprehensive example of all these features in action!
Too busy debugging to craft questions? Fear not! We've conjured up a magical script to help you generate question prompts faster than you can say "Stack Overflow":
-
Wave your wand (or just type in your terminal):
bun run question-prompt
-
Answer the mystical prompt asking how many questions you desire (choose wisely, young wizard!)
-
Behold as a perfectly crafted prompt materializes before your eyes!
-
Feed this prompt to your favorite AI familiar (we recommend Claude 3.5 Sonnet or GPT-4o for best results) and watch in awe as it conjures up quiz questions that would make even Merlin jealous.
-
Copy the AI-generated questions into new
.md
files in yoursrc/questions/
directory, and voilà! Your quiz just got a whole lot smarter.
Want to save your prompt for later? Use the -o
flag:
bun run question-prompt -o prompt.md
Need a helping hand? Just ask:
bun run question-prompt -h
Remember, with great power comes great responsibility. Use this feature wisely, and may your questions be ever engaging and your quizzes eternally awesome! 🧙♂️✨
-
Clone this repo:
git clone https://github.com/gmickel/codequest.git
-
Navigate into your new quest headquarters:
cd codequest
-
Install the magical dependencies:
bun install
(No bun? No problem!
npm install
works too, but it's less fun to say) -
Embark on your development journey:
bun run dev
-
Open
http://localhost:5173
and watch your quiz come to life!
-
Head to
src/config.ts
and change the title, description, and other details. It's like redecorating, but for your quiz! -
Add your own questions in
src/questions/
. Each.md
file is a new adventure waiting to happen! -
Want to change the looks? Dive into
src/components/Quiz/styles.css
and make it prettier than a double rainbow!
-
Push your changes to GitHub. (Don't forget to
git add .
andgit commit -m "Made my quiz awesome"
) -
Go to your repository settings, find the "Pages" section, and set the source to the
gh-pages
branch. -
Run the deployment spell:
bun run deploy
-
Watch in awe as your quiz magically appears at
https://yourusername.github.io/codequest
!
Got an idea that's so good it keeps you up at night? Here's how to make it a reality:
- Fork this repo (it's like adopting, but for code)
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request and wait for the internet high-fives!
Check out the contribution guide for more details on adding questions and features!
This project is licensed under the MIT License - see the LICENSE file for details. It's basically the "do whatever you want, just don't blame me" license.
- A big, cosmic thank you to OpenEHR Quest for being the primordial soup from which CodeQuest evolved!
- Shoutout to caffeine, the true MVP of this project
- And finally, thanks to you, for reading this far. You're the real hero! 🦸♂️
Now go forth and create quizzes that'll make people forget about doomscrolling! 🚀🧠🎉