MS
MinerSheets by Diofis
Sign In

Access Required

Sign in to access MinerSheets revolutionary features

Sign In Now
Dark Mode
Toggle theme

Access Required

Sign in to access MinerSheets revolutionary features

Sign In Now
Dark Mode
Toggle theme

Access Required

Sign in to access MinerSheets revolutionary features

Sign In Now
Dark Mode
Toggle theme

Access Required

Sign in to access MinerSheets revolutionary features

Sign In Now
Dark Mode
Toggle theme
โ†‘โ†“ Navigate โ†ต Select ESC Close
Powered by Fuse.js

Welcome to MinerSheets

The backbone of operational excellence

Home / Documentation / Installation

Installation Guide

Developer setup for contributing to MinerSheets

๐Ÿš€ Developer Installation

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).

๐Ÿ“‹ Prerequisites

Required Software

  • Python 3.11+ - Modern Python with latest features
  • Docker & Docker Compose - Container orchestration
  • PostgreSQL 15+ - Production database (via Docker)
  • Git - Version control
  • Redis - Cache & sessions (via Docker)

Recommended Tools

  • VS Code - IDE with Python extensions
  • Postman/Insomnia - API testing
  • pgAdmin/DBeaver - Database management

๐Ÿ”ง Installation Methods

Native Development Setup (Port 9319)

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

Docker Production Testing (Port 9320)

Production-like environment for deployment confidence.

1๏ธโƒฃ Clone Repository

git clone https://github.com/diofis-enterprise/MinerSheets.git
cd MinerSheets

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

๐Ÿ”ฅ Dual Environment Setup (Recommended Best Practice)

Run both environments simultaneously for maximum productivity: Fast iteration + Production confidence.

Architecture Overview

๐Ÿš€ 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)

๐Ÿ”„ Development Workflow

Daily Development

  1. Use Native (9319) for coding
  2. Hot reload automatically picks up changes
  3. Fast iteration without container overhead
  4. Full IDE integration and debugging

Before Commit

  1. Test on Docker (9320)
  2. Run comprehensive test suite
  3. Validate production behavior
  4. Ensure zero environment conflicts

๐Ÿ”’ Pre-commit Hooks Setup

MinerSheets enforces Zero Bypass Philosophy - quality gates must pass before commits.

Install Pre-commit Hooks

pip install pre-commit
pre-commit install

โš ๏ธ Quality Gates

  • Black - Auto-format code (line-length=88)
  • isort - Sort imports automatically
  • Flake8 - Code quality validation
  • Bandit - Security vulnerability scan
  • Comprehensive Tests - All 8 test suites must pass

๐Ÿงช Running Tests

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

๐Ÿ”ง Troubleshooting

Port Already in Use

# Find and kill process on port 9319
lsof -ti:9319 | xargs kill -9

# Or use utility function
python utils/management_functions.py stop

Database Connection Issues

# Check PostgreSQL status
docker ps | grep postgres

# Restart database
docker-compose -f config/docker-compose.yml restart db

Migration Issues

# Reset migrations (dev only)
python manage.py migrate schema_builder zero
python manage.py migrate

๐Ÿ“– For more troubleshooting tips, see docs/troubleshooting.md

๐ŸŽฏ Next Steps

๐Ÿ“ Contributing Guide

Learn how to contribute code

๐Ÿ—๏ธ Architecture

Understand the system design

๐Ÿ”Œ API Reference

Explore REST API endpoints

๐Ÿ’ฌ Need Help?

Community Support

  • ๐Ÿ› Report Issues on GitHub
  • ๐Ÿ’ฌ Join Discussions
  • ๐Ÿ“ง Email Support

Resources

  • ๐Ÿ“š Full Documentation
  • ๐Ÿ“– README
  • ๐ŸŽฅ Video Tutorials Coming Soon
MS
MinerSheets

Revolutionary Data Management platform by Diofis Enterprise. Phenomenal artwork in technology that transforms how companies manage data.

Made with โค๏ธ in Bitung, North Sulawesi, Indonesia by Hendrik Mamarodia.

Quick Links

  • Dashboard
  • All Models
  • Model Factory

Support

  • User Guide
  • API Reference
  • Help Center
  • About Us
  • Site Map
  • Privacy Policy
  • Terms of Service

ยฉ 2025 MinerSheets by Diofis Enterprise (Data Infra Ekselen). All rights reserved.

LinkedIn Company Developer Bitung, Indonesia