Python 3.10+ – Download Python
Node.js & npm (for Tailwind CSS) – Download Node.js
PostgreSQL (or SQLite for development) – Download PostgreSQL
Git – Download Git
First, open a terminal and run:
git clone https://github.com/Alpha-team-project/Alpha-player-django.git
Creating a virtual environment helps manage dependencies.
python -m venv venv
Next, install the required Python packages:
pip install -r requirements.txt
Create a .env file in the root directory and add:
cp .env.example .env
For SQLite (development), you don’t need database settings.
Run the following command to create database tables:
python manage.py migrate
To access the Django Admin panel, create a superuser:
python manage.py createsuperuser
Enter a username, email, and password when prompted.
Tailwind CSS is used for frontend styling.
python manage.py tailwind build
This compiles the CSS whenever you make changes.
Now, start the Django server:
python manage.py runserver
Open http://127.0.0.1:8000/ in your browser.
Now, Alpha Player should be running on your local machine! 🚀
docker-compose up -d --build