This is a web application for a fitness club which the major purpose is to make training sessions schedule more organised. It allows you to:
- Explore fitness club schedule
- View information about specific event with description, available places,
- Book a place for a specific event (with email confirmation)
- View information about coaches like opinions and biography
git clone
cd fitness-club
docker-compose build
docker-compose up -d
This will build 3 containers:
- Web server - nginx latest stable version that runs on "85:80" port with default.conf placed in /docker/nginx/
- PHP - 7.2
- Database - PostgreSQL that runs on default "5432" port
docker exec -it fitness-club_php_1 composer install
http://localhost:85/
Go to restricted area for example: http://localhost:85/room/new and log in.
User: admin
Password: admin
docker exec -it fitness-club_php_1 bash
docker exec -it postgres psql -U admin -W fitness_club
Password is: root
In order to use this command you need to be in php container
php ./bin/console hautelook:fixtures:load
docker exec -it fitness-club_php_1 php ./vendor/bin/phpcs ./src/ --standard=psr2
- ./src/ - directory that need to be scanned
- --standard=psr2 - specify standard