Environment Setup Skill
Purpose
Creates comprehensive setup instructions for both local and remote environments, ensuring reproducible development and deployment environments.
Tier
Tier 1-2 - MVP Launch to Growth
Local Environment Setup
Backend (Django)
bash
# Python environment python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt # Database docker-compose up -d postgres redis # Migrations python manage.py migrate python manage.py createsuperuser # Run server python manage.py runserver
Frontend (React)
bash
# Install dependencies npm install # Environment variables cp .env.example .env.local # Run development server npm run dev
Remote Environment Setup
Frontend (Render)
- •Deploy via GitHub integration
- •Environment variables in Render dashboard
- •Build command:
npm run build - •Publish directory:
dist
Backend (Railway)
- •Deploy via GitHub integration
- •PostgreSQL and Redis provisioned
- •Environment variables in Railway dashboard
- •Start command:
gunicorn config.wsgi
Docker Services
yaml
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: khujta_db
POSTGRES_USER: khujta_user
POSTGRES_PASSWORD: secure_password
redis:
image: redis:7-alpine
ports:
- "6379:6379"
Output
Generates markdown documentation in:
- •
docs/setup/local-setup.md - •
docs/setup/remote-deployment.md