Skip to content

A Symfony 6.4 demo application following the official "Symfony: The Fast Track" book. It features Docker-based local development, PostgreSQL, Mailpit for email testing, and modern Symfony best practices (MakerBundle, Twig, Messenger, API support, etc.).

License

Notifications You must be signed in to change notification settings

xikodev/symfony-fast-track-guestbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony 6.4 Fast Track Demo

A demo Symfony 6.4 application based on The Symfony Fast Track Book. It features a full-stack Symfony setup with Docker, PostgreSQL, Messenger, Mailer, and more.

📦 Features

  • Symfony 6.4 (LTS)
  • Docker-based local dev environment
  • PostgreSQL via Docker
  • Mailer with Mailpit for testing email delivery
  • Symfony Flex, MakerBundle, Twig, API Platform (optional)
  • Configuration via .env
  • Environment-ready for production

🚀 Getting Started

1. Clone the repository

git clone https://github.com/your-username/symfony-fast-track-demo.git
cd symfony-fast-track-demo

2. Start Docker containers

Make sure Docker is running on your machine, then:

docker compose up -d

This will start:

  • Symfony app
  • PostgreSQL
  • Mailpit (for email viewing)

📌 If you get an error like:

Cannot connect to the Docker daemon...

make sure Docker Desktop is running.

⚙️ Configuration

Environment variables

Copy the example environment file:

cp .env .env.local

Edit database DSN if needed:

DATABASE_URL="pgsql://symfony:symfony@db:5432/app?serverVersion=15&charset=utf8"

🗃️ Database Setup

Run database migrations:

docker compose exec php bin/console doctrine:database:create
docker compose exec php bin/console doctrine:migrations:migrate

(Optional) Load fixtures:

docker compose exec php bin/console doctrine:fixtures:load

📬 Mailer with Mailpit

Emails sent by Symfony are captured by Mailpit.

URL: http://localhost:8025

Send a test email:

docker compose exec php bin/console app:send-test-email

🧪 Useful Commands

docker compose exec php bash                  # Enter app container
docker compose exec php bin/console list      # View Symfony commands
docker compose exec php bin/phpunit           # Run tests (if configured)

📚 Reference

This project follows the official guide:

📖 Symfony Fast Track Book (6.4)

🤝 Credits

Symfony Core Team

Contributors to the book and documentation

Mailpit for local email testing

🛡 License

MIT — feel free to use, modify, and distribute.

About

A Symfony 6.4 demo application following the official "Symfony: The Fast Track" book. It features Docker-based local development, PostgreSQL, Mailpit for email testing, and modern Symfony best practices (MakerBundle, Twig, Messenger, API support, etc.).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •