Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Daniel Covington dae758b140 Initial commit vor 1 Woche
app Initial commit vor 1 Woche
config Initial commit vor 1 Woche
database/migrations Initial commit vor 1 Woche
docker Initial commit vor 1 Woche
docs Initial commit vor 1 Woche
framework Initial commit vor 1 Woche
public Initial commit vor 1 Woche
resources Initial commit vor 1 Woche
storage Initial commit vor 1 Woche
tests Initial commit vor 1 Woche
.env.example Initial commit vor 1 Woche
.gitignore Initial commit vor 1 Woche
Dockerfile Initial commit vor 1 Woche
command.php Initial commit vor 1 Woche
composer.json Initial commit vor 1 Woche
composer.lock Initial commit vor 1 Woche
docker-compose.yml Initial commit vor 1 Woche
phpunit.xml Initial commit vor 1 Woche
readme.md Initial commit vor 1 Woche
server.php Initial commit vor 1 Woche

readme.md

Whoosh website

To run the local development server, try:

export PHP_ENV=prod && php -S 127.0.0.1:8000 -t .

To make requests with cURL, try:

curl -X DELETE http://127.0.0.1:8000/old-home

Running with Docker

docker compose up -d --build

This starts two services:

  • app — nginx + php-fpm, served at http://localhost:8080
  • db — MySQL 8, exposed on host port 33060 (only used if DB_CONNECTION=mysql)

The default database connection is SQLite (database/database.sqlite), configured via DB_CONNECTION in .env / docker-compose.yml. On first boot the app container automatically creates the SQLite file with the correct permissions and runs migrations. To switch to MySQL instead, set DB_CONNECTION=mysql in docker-compose.yml.

To run migrations manually (e.g. after adding a new migration file):

docker compose exec app php command.php migrate
docker compose exec app php command.php migrate --fresh   # drops all tables first, for a clean slate

phpLiteAdmin

A SQLite admin UI is available at http://localhost:8081, password admin (change it via the PHPLITEADMIN_PASSWORD environment variable in docker-compose.yml). It's a development-only tool — don't expose port 8081 outside your local machine.

Framework guide

This app is built on a small custom MVC framework in framework/. See docs/framework.md for how routing, controllers, views, models/migrations, validation, sessions, caching, queues, and the CLI commands all work.

Powered by TurnKey Linux.