This Django-based sports betting platform allows users to place bets on sports games, manage user accounts, and view game-related information. Staff or superusers can manage games and make updates as needed.
To run this project locally, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/your-username/your-repo.git
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows, use venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
-
Configure your database settings in
settings.py
. -
Apply database migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
- Access the application in your web browser at
http://localhost:8000/
.
- Registration:
- Visit the registration page and fill out the registration form.
- An activation link will be sent to your email for account confirmation.
- Login:
- After confirming your account, log in with your credentials.
- Betting:
- View upcoming games on the home page.
- Place bets on your chosen team with a specified bet amount.
- Manage your bets on the "Bets" page.
- Profile:
- View your profile to see your betting history and current bets.
- Email settings can be configured in
settings.py
to enable account activation emails. - Ensure that your email service provider settings are correctly configured.
The application provides the following API endpoints for external access:
/teams/
: Get a list of all sports teams./players/
: Get a list of all players./games/
: Get a list of all games./api/bets/
: API for managing user bets.
Contributions to this project are welcome. To contribute:
- Fork the repository and clone it to your local machine.
- Create a new branch for your feature or bug fix.
- Implement your changes.
- Test your changes thoroughly.
- Commit your changes and push them to your forked repository.
- Open a pull request to the main repository.
This project is licensed under the Your License Name - (e.g., MIT) License. See the LICENSE file for details.