Skip to content

Musharraf4/les-backend

Repository files navigation

Introact Backend (Django + DRF)

Backend for the Introact project, built with Django and Django REST Framework.
Includes company pipeline modules, user management, and API docs via drf-yasg.


🚀 Tech Stack

  • Python 3.12+
  • Django (with DRF, drf-yasg for Swagger)
  • PostgreSQL
  • Gunicorn (for production)
  • Static assets served from staticfiles/

📂 Project Layout


⚙️ Setup & Installation

1) Prerequisites

  • Python 3.12+
  • PostgreSQL running (database created, e.g. introact)
  • virtualenv recommended

2) Clone & Create Virtualenv

git clone <your-repo-url>.git
cd introact_backend
python3 -m venv venv
source venv/bin/activate
cp .env.example .env

Install Dependencies

pip install -r requirements.txt

Make and run migrations

python manage.py makemigrations

python manage.py migrate

Seed pipeline stages

python manage.py populate_pipeline_stages

Create admin user

python manage.py createsuperuser

Run celery and redis

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

  • Make shell file executable

chmod +x server.sh

./server.sh

Run local server

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

About

The Lead Enrichment System (LES) is a comprehensive web application developed by Belay Global for managing and tracking companies through a structured sales pipeline. Built with React, it serves as a centralized platform for sales teams, analysts, automate outreach processes, and make data-driven decisions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages