Discover your true Hogwarts house with this magical interactive quiz powered by AI! Answer a series of personality-based questions and let the Sorting Hat determine which of the four houses (Gryffindor, Hufflepuff, Ravenclaw, or Slytherin) you truly belong to.
- Interactive Quiz: Answer thought-provoking questions to determine your house
- AI-Powered: Uses Google's Gemini AI to generate dynamic questions and analyze responses
- Detailed Results: Receive a personalized character profile along with your house
- Responsive Design: Works seamlessly on both desktop and mobile devices
- Modern Tech Stack: Built with React, TypeScript, and Vite
- Node.js (v16 or higher)
- A Google Gemini API key
-
Clone the repository:
git clone https://github.com/your-username/hogwarts-sorting-hat-quiz.git cd hogwarts-sorting-hat-quiz -
Install dependencies:
npm install
-
Create a
.env.localfile in the root directory and add your Gemini API key:VITE_GEMINI_API_KEY=your_api_key_here
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173
To create a production build:
npm run buildContributions are welcome! Please feel free to submit a pull request or open an issue.
This project is open source and available under the MIT License.
This is a fan-made project and is not affiliated with or endorsed by Warner Bros. Entertainment Inc., J.K. Rowling, or any of the Harry Potter related entities.