A sports management system built to manage events, teams, matches, and tournament results for NSTU. The project integrates a Django backend and a Flutter frontend for an interactive user experience.
The NSTU Sportify System provides a platform to:
- Manage teams, players, matches, and tournaments.
- Enable role-based access control for admins, representatives, and general users.
- View past tournament winners, team details, and match schedules.
- Handle representative requests for approval/rejection by the admin.
The project adheres to RESTful API principles, enabling a seamless connection between the backend and frontend.
- Python 3.10+
- Flutter 3.0+
- MySQL Server (XAMPP for local hosting)
- Django 4.x
- Dart SDK
- IDE/Text Editor: PyCharm, Visual Studio Code, or any preferred editor.
-
Clone the Repository
git clone https://github.com/your-username/nstu-sportify.git cd nstu-sportify/backend
-
Create a Virtual Environment
python -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt
-
Database Configuration Update the
DATABASES
section innstu_sportify/settings.py
to match your MySQL setup.DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'your_db_name', 'USER': 'your_db_user', 'PASSWORD': 'your_db_password', 'HOST': '127.0.0.1', 'PORT': '3306', } }
-
Apply Migrations
python manage.py makemigrations python manage.py migrate --fake
-
Run the Development Server
python manage.py runserver
The backend will be accessible at http://127.0.0.1:8000/.
-
Navigate to the Frontend Directory
cd ../frontend
-
Install Dependencies
flutter pub get
-
Run the Flutter App
flutter run
models.py
: Defines data models (Team, Player, Matchdetails, etc.).views.py
: Contains logic for handling requests and responses.urls.py
: Maps endpoints to their respective views.serializers.py
: Converts data between models and JSON.
lib/
: Contains Flutter code.main.dart
: Entry point of the Flutter app.Screens/
: UI pages like Admin Dashboard, Team Management, etc.api_services/
: Handles HTTP requests to the backend.models.py
: Defines data models (Team, Player, Matchdetails, etc.).
Contributions are welcome! Feel free to submit issues or pull requests to enhance the project.
Developed by Mohammed Maruf Islam,Mission Devnath and Al Shahriar Shafi.