Sign in to access MinerSheets revolutionary features
Try searching with different keywords
The backbone of operational excellence
Developer setup for contributing to MinerSheets
This guide is for developers who want to contribute to MinerSheets or set up a development environment. If you're looking to use MinerSheets as an end-user, please see the User Guide instead.
๐ Important: MinerSheets uses a revolutionary Dual Environment Development Methodology for maximum productivity: Native (fast iteration) + Docker (production testing).
Fast iteration with hot reload - perfect for rapid development.
1๏ธโฃ Clone Repository
git clone https://github.com/diofis-enterprise/MinerSheets.git cd MinerSheets
2๏ธโฃ Create Virtual Environment
python3 -m venv venv_dev source venv_dev/bin/activate # Linux/Mac # venv_dev\Scripts\activate # Windows
3๏ธโฃ Install Dependencies
pip install --upgrade pip pip install -r requirements.txt pip install -r requirements-dev.txt
4๏ธโฃ Start PostgreSQL Container
# PostgreSQL will run on port 5434 docker-compose -f config/docker-compose.yml up -d db
5๏ธโฃ Configure Environment
cp .env.development.example .env.development # Edit .env.development with your settings
6๏ธโฃ Run Migrations
python manage.py migrate python manage.py createsuperuser
7๏ธโฃ Start Development Server
python manage.py runserver 0.0.0.0:9319
โ Visit: http://localhost:9319
Production-like environment for deployment confidence.
2๏ธโฃ Configure Environment
cp .env.development.example .env.development # Edit configuration as needed
3๏ธโฃ Build and Start Containers
docker-compose -f config/docker-compose.yml up -d --build
4๏ธโฃ Run Migrations
docker-compose -f config/docker-compose.yml exec web python manage.py migrate docker-compose -f config/docker-compose.yml exec web python manage.py createsuperuser
5๏ธโฃ Access Application
โ Visit: http://localhost:9320
Run both environments simultaneously for maximum productivity: Fast iteration + Production confidence.
๐ Native (Port 9319) ๐ณ Docker (Port 9320) โ โ โโ Fast Iteration โโ Production Testing โโ Hot Reload โโ Container Validation โโ IDE Integration โโ Infrastructure Testing โโ Instant Feedback โโ Deployment Confidence โ โ โโโโโโโ Shared PostgreSQL (Port 5434) โโโโโโโ
1๏ธโฃ Setup Native Environment
python3 -m venv venv_dev source venv_dev/bin/activate pip install -r requirements.txt -r requirements-dev.txt
2๏ธโฃ Start Shared Infrastructure
# Start PostgreSQL (5434) and Redis (6379) docker-compose -f config/docker-compose.yml up -d db redis
3๏ธโฃ Start Native Server (9319)
python manage.py runserver 0.0.0.0:9319 &
4๏ธโฃ Start Docker Environment (9320)
docker-compose -f config/docker-compose.yml up -d web
5๏ธโฃ Verify Both Environments
python utils/management_functions.py status
โ Success!
Native: http://localhost:9319 (fast development) Docker: http://localhost:9320 (production testing)
MinerSheets enforces Zero Bypass Philosophy - quality gates must pass before commits.
Install Pre-commit Hooks
pip install pre-commit pre-commit install
โ ๏ธ Quality Gates
Run All Test Suites
python tests/run_all_tests.py
Runs: Unit + Integration + E2E + API + URL + Quality + Security
Run Specific Test Suite
# Unit tests python tests/unit/test_dynamic_models.py # E2E tests python tests/e2e/test_end_to_end.py # URL structure tests bash tests/e2e/test_professional_urls.sh
Health Check
python utils/management_functions.py health-check
# Find and kill process on port 9319 lsof -ti:9319 | xargs kill -9 # Or use utility function python utils/management_functions.py stop
# Check PostgreSQL status docker ps | grep postgres # Restart database docker-compose -f config/docker-compose.yml restart db
# Reset migrations (dev only) python manage.py migrate schema_builder zero python manage.py migrate
๐ For more troubleshooting tips, see docs/troubleshooting.md
Learn how to contribute code
Understand the system design
Explore REST API endpoints