@jhbhan/parable-quiz
v1.1.3
Published
A react-based quiz app for the parables of Jesus
Readme
Parables Quiz
A React-based quiz app focused on the parables of Jesus. This project provides an interactive trivia experience, fetching questions from a remote API and tracking user scores.
Features
- Quiz game on the parables of Jesus
- Fetches questions dynamically from a remote API
- Score tracking and results summary
- Built with React and TypeScript
- Modern Vite-based development environment
Getting Started
Prerequisites
- Node.js (v18 or higher recommended)
- npm or yarn
Installation
git clone https://github.com/jhbhan/parable-quiz.git
cd parable-quiz
npm installRunning the App
To start the development server:
npm run devOpen http://localhost:5173 in your browser.
Building for Production
npm run buildLinting
npm run lintUsage
The main component is ParablesQuiz, which can be imported and used in your React app:
import ParablesQuiz from '@jhbhan/parable-quiz';Project Structure
src/ParablesQuiz.tsx- Main quiz componentsrc/api.ts- API logic for fetching quiz questionssrc/main.tsx- App entry pointindex.html- HTML template
License
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.