/hphp

Harry Potter House Party

Primary LanguageGo

Harry Potter House Party

Homepage

Welcome to the Harry Potter House Party Web App! This web application is designed to help you keep track of scores and have a magical time at your Harry Potter-themed party. Whether you're hosting a trivia night, a house competition, or any other event inspired by the wizarding world, this app has got you covered.

Features

  • Score Tracking: Easily keep track of scores for each of the four Hogwarts houses: Gryffindor, Hufflepuff, Ravenclaw, and Slytherin.
  • Real-time Updates: Scores are updated in real-time, so everyone at the party can see how their house is doing.
  • Event Streaming: Stay updated on score changes and important announcements with the built-in event streaming feature. See the scores change magically before your eyes!

Getting Started

Follow these steps to get started with the Harry Potter House Party Web App:

  1. Clone the Repository: Clone this repository to your local machine using git clone.

  2. Start Redis: See redis docs

  3. Run the App: Start the web application by running the following command from the project root directory:

    go run cmd/hphp/server.go -redisIp 127.0.0.1 -redisPort 6379 -redisPassword mypassword

    This will start the web server, and the app will be accessible at http://localhost:8080 in your web browser.

Usage

  • Score Tracking: Click on the house buttons (Gryffindor, Hufflepuff, Ravenclaw, Slytherin) to add or subtract points for each house.
  • Event Streaming: Visit the "House Events" page to see real-time updates of score changes and announcements.

Contributing

  1. Fork the repository on GitHub.
  2. Clone your forked repository to your local machine.
  3. Make changes or add features.
  4. Commit and push your changes to your forked repository.
  5. Submit a pull request to the original repository.
  6. Please make sure to follow the code of conduct and contributing guidelines when submitting contributions.

License

This project is licensed under the MIT License - see the LICENSE file for details.