Conduit Backend
Table of Contents
Configuration
Adjust your environment setup inside conduit-backend/:
cp .env.example .env
nano .env
Edit your environment variables:
# DJANGO SUPERUSER
DJANGO_SUPERUSER_EMAIL=admin@example.com # <- change
DJANGO_SUPERUSER_NAME=admin # <- change
DJANGO_SUPERUSER_PASSWORD=adminpass # <- change
# SECURITY
SECRET_KEY=your-django-secret-key # <- change
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1 # <- change
# CORS
ALLOWED_ORIGIN=http://127.0.0.1:8082 # <- change
Save & Exit: CTRL + O, then CTRL + X
Quick Start Docker
- Build Image:
docker build -t conduit-backend .
- Run Container:
docker run --rm -it -p 7000:8000 --env-file .env conduit-backend
Quick Start Docker Compose
You can also start the Django API with Docker Compose by running:
docker compose up -d --build
Usage
Admin-Login:
Email: admin@example.com
Passwort: adminpass
Replace
localhostwith your host IP if needed.
- Backend: http://localhost:7000/admin
