|
|
1 gün önce | |
|---|---|---|
| .. | ||
| README.md | 1 gün önce | |
| REQUEST_FLOW.md | 1 gün önce | |
A PHP MVC web application backed by Microsoft SQL Server, hosted with Docker.
docker compose up -d --build
docker compose exec campaign-tracker-app composer install
docker compose exec campaign-tracker-app php scripts/migrate.php up
docker compose exec campaign-tracker-app php scripts/migrate.php status
Open: http://localhost:8801
Health check: http://localhost:8801/health
Note: SQL Server takes about 10–20 seconds to be ready after
docker compose up. If the firstmigrate upfails with a connection error, wait a moment and retry.
Copy .env.example to .env for local development outside Docker:
cp .env.example .env
Docker injects environment variables directly from docker-compose.yml, so .env is only needed when running PHP outside a container.
php scripts/migrate.php up # run pending migrations
php scripts/migrate.php down [steps] # roll back last N migrations
php scripts/migrate.php status # show migration state
php scripts/migrate.php make <name> # scaffold a new migration file
php scripts/migrate.php fresh # roll back all and re-run
php scripts/migrate.php fresh --seed # roll back all, re-run, seed data
Browser → public/index.php → Request → Dispatcher → Router → Route → Controller → ViewModel/Repository → View → Response
core/ framework classesapp/Controllers/ application controllersapp/ViewModels/ view model classesapp/Repositories/ data access classesapp/Views/ PHP templatesroutes/web.php route definitionsdatabase/migrations/ migrationsscripts/ runnable PHP CLI scriptsdocker/ Docker support filesAlpine.js for lightweight page state and dynamic form interactionsTabulator for the interactive data gridSee REQUEST_FLOW.md for a chart of how requests and responses move through the framework.
Powered by TurnKey Linux.