A Pokemon Project built with Symfony 6 web framework, virtualized with Docker-based installer and runtime with full HTTP/2, HTTP/3 and HTTPS support.
Scenario: A new pokemon tournament is coming soon and a strong team must be created to try to excel at the competition! On this project by using the Pokemon API at https://pokeapi.co/ we can create, list or edit teams.
- Install Docker Compose (v2.10+), or proceed to second step if already installed.
- Clone this repository
- Enter inside the folder.
- Run
docker-compose build --no-cache
to build fresh images - Run
docker-compose up -d
to run the containers in backround ordocker-compose up
for the logs to be displayed in the current shell. - Run
symfony console doctrine:migrations:migrate
on the root folder of the project to create the database tables. - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate.
-
Helper single cli command instead of point 3 & 4:
docker compose up --build -d --force-recreate
-
Run
docker compose down --remove-orphans
to stop & remove the Docker containers. -
Helper terminal command to create database schema:
symfony console doctrine:schema:create
-
Helper terminal command to create database tables:
symfony console doctrine:migrations:migrate
-
Helper terminal command to generate new migrations from entity:
symfony console doctrine:migrations:diff
- Production, development and CI ready
- Installation of extra Docker Compose services with Symfony Flex
- Native XDebug integration
- 5 services (PHP-FPM, Nginx Webserver, Mysql Db, Redis Cache, Mailcatcher)
- Easy-readable configuration
Wish you enjoy and excel at the competition!
- Build options
- Support for extra services
- Debugging with Xdebug
- TLS Certificates
- Using a Makefile
- Troubleshooting
MIT License.
Created by Lefter Zaka.