Skip to content

About

πŸ† Pitch Kings is a modern football tournament management platform for leagues, schools, academies, and communitiesβ€”built with Firebase for real-time competition management.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

⚽ PITCH KINGS

DLS TOURNAMENT MANAGER

Status Frontend Backend License

A full tournament-management platform for Dream League Soccer communities.

Features Β· Architecture Β· Setup Β· Security Β· Roadmap


🎯 What is Pitch Kings?

Pitch Kings turns an informal DLS league into a structured digital competition. Administrators can manage tournaments, teams, players and fixtures while participants can follow match activity, standings, notifications and social interactions from the same platform.

The project is intentionally designed as a real-world product, not just a static tournament page.

✨ Features

πŸ† Tournament operations

  • Tournament creation and administration
  • Team and player management
  • Fixture scheduling and result recording
  • League standings and match-day workflows
  • Rules and competition information

πŸ‘€ Player experience

  • Account registration and authentication
  • Player profiles
  • Friend requests and player discovery
  • Match and fixture views
  • Notifications
  • Direct social interactions

πŸ› οΈ Admin experience

  • Dedicated admin dashboard
  • Tournament management
  • Fixture administration
  • Notification management
  • Member/player workflows

πŸ—οΈ Architecture

                         PITCH KINGS
                              β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚                               β”‚
        Player Experience                Admin Experience
              β”‚                               β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                        Firebase Auth
                              β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚               β”‚               β”‚
          Firestore        Storage         Functions
              β”‚               β”‚               β”‚
       users / teams      profile/media   trusted workflows
       fixtures / results

🧰 Stack

  • Frontend: HTML5, CSS3, modern JavaScript
  • Authentication: Firebase Authentication
  • Database: Cloud Firestore
  • Storage: Firebase Storage
  • Server-side workflows: Firebase Cloud Functions
  • Hosting: Firebase Hosting compatible

πŸ” Security

Pitch Kings treats tournament and user data as untrusted input. Production deployments should:

  • Enforce authorization with Firestore and Storage Security Rules.
  • Keep privileged operations on trusted server-side code.
  • Never commit service-account credentials or private keys.
  • Validate user-controlled text before rendering it into the UI.
  • Restrict administrative workflows to authorized accounts.
  • Review rules whenever the data model or permissions change.

Important: Firebase client configuration values are not a substitute for security rules. Authorization must be enforced by the backend/security layer.

πŸš€ Setup

1. Clone

git clone https://github.com/vince551/Pitch-kings.git
cd Pitch-kings

2. Configure Firebase

Create a Firebase project and enable the services required by the application:

  • Authentication
  • Cloud Firestore
  • Storage
  • Cloud Functions, where applicable

Configure the client values used by the project in js/firebase-config.js.

3. Run locally

Because the application uses browser modules and Firebase, serve it over HTTP rather than opening HTML files directly.

npx serve .

Then open the local URL shown by the server.

4. Deploy

Use the Firebase CLI after configuring the project and reviewing the security rules:

firebase login
firebase use <your-project-id>
firebase deploy

πŸ“ Project structure

.
β”œβ”€β”€ admin/             # Administrative tournament workflows
β”œβ”€β”€ user/              # Player-facing pages
β”œβ”€β”€ js/                # Shared application logic
β”œβ”€β”€ css/               # Shared styling
β”œβ”€β”€ firestore.rules    # Firestore authorization rules
β”œβ”€β”€ firebase.json      # Firebase Hosting configuration
β”œβ”€β”€ index.html         # Public entry point
β”œβ”€β”€ register.html      # Registration flow
└── package.json       # Local tooling/dependencies

πŸ—ΊοΈ Roadmap

  • Automatic round-robin fixture generation
  • Stronger fixture conflict validation
  • Match verification workflow
  • Live score updates
  • Admin analytics dashboard
  • Player statistics and top-scorer tables
  • Shareable public tournament pages
  • Improved mobile navigation
  • Automated tests for critical tournament logic

🀝 Contributing

Contributions are welcome. For feature work, bug fixes or UI improvements:

  1. Fork the repository.
  2. Create a focused branch.
  3. Make the smallest coherent change.
  4. Test the affected workflow.
  5. Open a pull request with a clear description.

Please never include Firebase secrets, service-account keys or private user data in commits.

πŸ‘¨β€πŸ’» Author

Vince Odhiambo β€” full-stack developer and technology builder.

πŸ“„ License

MIT License. See LICENSE.


Manage the league. Own the fixture. Rule the pitch.

About

πŸ† Pitch Kings is a modern football tournament management platform for leagues, schools, academies, and communitiesβ€”built with Firebase for real-time competition management.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages