Local Development Setup
Step-by-step instructions to clone, install dependencies, configure, and boot the entire ERP stack locally.
Local Development Setup
IMPLEMENTED
Follow this guide to get the full Sheba ISP ERP platform running locally on your machine.
1. Repository Clone
git clone https://github.com/Taraldinn/sheba-erp.git
cd sheba-erp2. Backend Setup (Django & Celery)
Create and Activate Virtual Environment
cd backend
python3 -m venv venv
source venv/bin/activateInstall Python Dependencies
pip install --upgrade pip
pip install -r requirements.txtEnvironment Configuration
Copy the sample environment file:
cp .env.example .envEnsure .env contains local development defaults:
ENVIRONMENT=local
DEBUG=True
SECRET_KEY=django-insecure-dev-key-change-in-production
ALLOWED_HOSTS=*
DATABASE_URL=sqlite:///db.sqlite3
REDIS_URL=redis://localhost:6379/0
CORS_ALLOW_ALL_ORIGINS=TrueRun Migrations & Seed Database
python manage.py migrate
python seed_data.py[!TIP]
seed_data.pycreates default tenants (shebafi,speednet), default staff users (admin,billing_staff), MikroTik router configs, sample packages, and customers.
Start the Development Server
python manage.py runserver 0.0.0.0:8000API endpoints will be live at http://localhost:8000/api/v1/.
Interactive OpenAPI Swagger docs will be at http://localhost:8000/api/docs/.
Run Celery Worker (In a separate terminal)
cd backend
source venv/bin/activate
celery -A sheba_core worker -l info3. Frontend Setup (Next.js App)
Open a new terminal window:
cd frontend
npm install
npm run devThe ISP ERP dashboard will be accessible at http://localhost:3000.
4. Documentation Setup (Fumadocs)
Open a new terminal window:
cd docs
npm install
npm run dev -- -p 3001The developer documentation portal will be accessible at http://localhost:3001 (or http://localhost:3000 if standalone).
5. Running the Backend Test Suite
To verify system integrity across all 13 modules:
cd backend
venv/bin/python manage.py testAll tests should pass with OK (153/153 passing).