https://github.com/azdharsyahputra/pit
PIT is a portable local web development environment that manages multiple PHP versions, Nginx virtual hosts, databases, and developer services through a unified engine and modern control panel.
https://github.com/azdharsyahputra/pit
apache ci4 docker go golang laragon laravel mysql nginx php phpmyadmin tool tools
Last synced: 6 months ago
JSON representation
PIT is a portable local web development environment that manages multiple PHP versions, Nginx virtual hosts, databases, and developer services through a unified engine and modern control panel.
- Host: GitHub
- URL: https://github.com/azdharsyahputra/pit
- Owner: azdharsyahputra
- License: mit
- Created: 2025-12-10T00:58:58.000Z (7 months ago)
- Default Branch: dev
- Last Pushed: 2025-12-19T08:46:59.000Z (6 months ago)
- Last Synced: 2025-12-22T02:55:39.695Z (6 months ago)
- Topics: apache, ci4, docker, go, golang, laragon, laravel, mysql, nginx, php, phpmyadmin, tool, tools
- Language: Go
- Homepage:
- Size: 5.45 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PIT
**PIT** is a local development engine designed to keep developers focused on what matters most: **writing code**.
Inspired by a racing pit crew, PIT handles the surrounding infrastructure β web server, runtimes, tools, and system setup β so you donβt have to.
> You build the application.
> **PIT handles the pit stop.**
---
## π What is PIT?
PIT is a **portable, engine-driven local development environment** built in Go.
It provides a fast, predictable, and zero-friction workflow by generating and managing everything required to run modern web applications locally β without manual configuration.
PIT is opinionated where it matters and invisible where it should be.
---
## β‘ Core Features (v0.1)
### π§ Engine-First Architecture
- Single binary engine written in Go
- Centralized service orchestration
- Explicit, idempotent one-time system setup
- No manual config editing
### π Web Stack
- Portable Nginx
- Automatic virtual host generation
- Automatic `/etc/hosts` synchronization
- Bind privileged ports without running the engine as root
### π PHP Runtime
- Dedicated PHP-FPM per project
- Dedicated PHP-FPM runtime for tools
- UNIX socket communication (no random ports)
- Clear separation between application runtime and tooling
### π§° Built-in Tools
- phpMyAdmin included
- Tools run in isolated runtimes
- Tool virtual hosts are auto-generated and disposable
### ποΈ Database Experience
- Optimized local database configuration
- Password-based root access for development
- phpMyAdmin works out-of-the-box
---
## π§© Why PIT?
PIT is built on a simple belief:
> Local development should feel **instant, predictable, and effortless**.
PIT takes ownership of infrastructure so developers donβt have to:
- No environment drift
- No hidden state
- No manual wiring
- No βread the docs firstβ moments
Everything is generated, managed, and controlled by the engine.
---
## ποΈ Project Structure (Simplified)
```
pit/
ββ cmd/pit/ # CLI entrypoint
ββ internal/
β ββ core/ # Engine & orchestration
β ββ services/ # Service lifecycle
β ββ tools/ # Tool management & vhost generation
ββ nginx/ # Portable nginx
ββ runtime/
β ββ _tools/php/ # PHP-FPM runtime for tools
β ββ /php/ # PHP-FPM per project
ββ tools/
β ββ phpmyadmin/ # Built-in tools
ββ config/
```
---
## π¦ Getting Started
### 1οΈβ£ One-time setup
```bash
./pit setup
```
This will:
- Prepare system permissions
- Configure local database access
### 2οΈβ£ Start the engine
```bash
./pit start
```
### 3οΈβ£ Open tools
```
http://phpmyadmin.test
```
Login:
- **User:** `root`
- **Password:** *(empty)*
---
## π Project Status
- **Version:** `v0.1.0`
- **Stage:** Stable MVP
- **Scope:** Local development only
PIT v0.1 focuses on **core stability and developer experience**.
Future versions will expand only after real-world usage.
---
## π£οΈ Roadmap (Post v0.1)
Planned directions:
- Service status & health reporting
- Tool lifecycle management
- Lightweight control panel
- Cross-platform packaging
- Additional built-in tools
---
## β οΈ Disclaimer
PIT is intended for **local development only**.
System defaults prioritize speed and clarity over production-grade hardening.
---
## π Philosophy
In a race, drivers donβt stop to adjust their engine or tires.
They trust the pit crew.
**PIT is that crew for your local development.**
---
## π License
MIT License.