This is a Django app for FL-Backend. It provides instructions on how to set up a virtual environment, run Docker Compose for the database, migrate the database, and run the app.
- Python 3.x
- Docker
- Docker Compose
-
Clone the repository:
git clone <repository_url>
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
-
For Windows:
venv\Scripts\activate
-
For macOS/Linux:
source venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
-
Install the uv package manager:
pip install uv
-
Create a uv virtual environment:
uv venv
-
Install the required dependencies:
uv pip install -r pyproject.toml
-
Start the database using Docker Compose:
docker compose up -d
-
Apply the database migrations:
python manage.py migrate
or
uv manage.py migrate
-
Collect static files:
python manage.py collectstatic
or
uv manage.py collectstatic
-
Start the Django development server:
python manage.py runserver
or
uv manage.py runserver
-
Open your web browser and navigate to
http://localhost:8000to access the app.