Backend for the Introact project, built with Django and Django REST Framework.
Includes company pipeline modules, user management, and API docs via drf-yasg.
- Python 3.12+
- Django (with DRF, drf-yasg for Swagger)
- PostgreSQL
- Gunicorn (for production)
- Static assets served from
staticfiles/
- Python 3.12+
- PostgreSQL running (database created, e.g.
introact) virtualenvrecommended
git clone <your-repo-url>.git
cd introact_backend
python3 -m venv venv
source venv/bin/activate
cp .env.example .envpip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py populate_pipeline_stages
python manage.py createsuperuser
sudo apt-get install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
chmod +x server.sh
./server.sh
python manage.py runserver
pip install weasyprint sudo apt-get install -y libpango-1.0-0 libpangoft2-1.0-0 libgdk-pixbuf2.0-0 libffi-dev libcairo2