Installation
Prerequisites
- Python 3.12+
- Node.js (for frontend dependencies)
- Django 5.x
Steps
-
Clone the repository
git clone <your-repo-url> cd delta
-
Install Python dependencies
pip install -e .[dev]
-
Install Node.js dependencies
npm install
-
Copy static assets
python copy_node_to_static.py
-
Apply migrations
python manage.py migrate
-
Create a
.env
fileSECRET_KEY=your-secret-key
-
Set up pre-commit hooks
This project uses the
pre-commit
package to ensure code quality by running bothblack
andpylint
before any commit.
To enable this, run:pre-commit install
Now, every time you commit,
black
andpylint
will automatically check your code. -
Run the development server
python manage.py runserver
-
Access the app
Open http://localhost:8000 in your browser.