This repository is a Flight PHP-based personal navigation site.
app/Controllers/: request handlers for auth, admin, links, settings, and dashboard flowsapp/Helpers/,app/Middleware/: shared utilities, CSRF/auth/session helpers, and asset loadingapp/routes.php: route registration and auth guardsconfig/: app and database bootstrapdatabase/init.sql: schema bootstrap for first-time setuppublic/: web entrypoint and built frontend assetsresources/: PHP views plus Vite-managed CSS/JS sourcesscripts/setup_db.php: local database bootstrap script
composer install: install PHP dependenciesnpm install: install frontend dependenciesphp scripts/setup_db.php: create the configured database schema and seed the admin accountnpm run dev: start the Vite dev server on127.0.0.1:5173php -S 127.0.0.1:8100 -t public: start the PHP app locallynpm run build: generate production assets intopublic/assets
This repository's personal-development baseline is WSL2 native only.
- Execute project commands from
/home/wanglizhou/web/personal_navigation. - Use only WSL-native
php,composer,node,npm,git, andmysql. - Do not call Windows executables or runtime paths under
/mnt/cor/mnt/d. - Local app URL is
http://127.0.0.1:8100. - MySQL is
127.0.0.1:3307with the locally configured root account. - Long-running processes still require explicit user intent. Do not proactively start
php -S,npm run dev, watchers, or similar persistent processes unless the user clearly asks for them. - If the database or runtime is not ready, stop and report the missing prerequisite instead of guessing.
Use strict types, keep PHP classes in StudlyCase, methods in camelCase, and preserve the existing lightweight MVC split. Follow nearby files for formatting and prefer concise Chinese comments only where the code flow is not obvious.