feat: Initialize Symfony application structure with essential files
- Added index.php for application entry point. - Created app.css for global styles. - Introduced HomeController for handling the home route. - Implemented Kernel class for application kernel. - Added base.html.twig as the main template. - Created index.html.twig for the home page layout. - Set up Docker configurations for development and production environments. - Included opcache configuration for development.
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
# Boathouse Cafe
|
||||
|
||||
A Symfony 8 web application for Boathouse Cafe.
|
||||
|
||||
## Stack
|
||||
|
||||
- **PHP 8.4** / **Symfony 8.0**
|
||||
- **FrankenPHP** (web server)
|
||||
- **Twig** (templating)
|
||||
- **Docker** (containerized dev & prod)
|
||||
|
||||
## Requirements
|
||||
|
||||
- Docker + Docker Compose
|
||||
- (Optional) PHP 8.4 + Symfony CLI for local development
|
||||
|
||||
## Getting Started
|
||||
|
||||
```bash
|
||||
# Build and start in dev mode (live reload)
|
||||
make start
|
||||
|
||||
# App runs at http://localhost:8087
|
||||
```
|
||||
|
||||
## Common Commands
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `make start` | Start Docker containers in dev mode |
|
||||
| `make stop` | Stop all services |
|
||||
| `make restart` | Restart containers |
|
||||
| `make build` | Install deps and clear cache |
|
||||
| `make rebuild-docker` | Full rebuild from scratch |
|
||||
| `make test` | Run test suite |
|
||||
| `make lint-fix` | Fix code style |
|
||||
| `make logs` | Follow container logs |
|
||||
| `make shell` | Open shell in container |
|
||||
|
||||
Run `make help` for the full list.
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
# Install dependencies locally
|
||||
make install-deps
|
||||
|
||||
# Start local Symfony dev server (no Docker)
|
||||
make start-local
|
||||
|
||||
# Run tests
|
||||
make test
|
||||
|
||||
# Check code style
|
||||
make lint-check
|
||||
```
|
||||
|
||||
## Production
|
||||
|
||||
```bash
|
||||
make start-prod
|
||||
```
|
||||
|
||||
The production Docker image uses `docker-compose.yml` only (no dev overrides). The container serves on port 80; the host maps it to `8087`.
|
||||
|
||||
Reference in New Issue
Block a user