Backend for kasprzakCMS
- PHP 7+
- MySQL 5.5+
- [DEV] Docker
composer install
to install required dependenciesphp artisan optimize
to compile classesphp artisan key:generate
to generate encryption keysphp artisan migrate
to create database tablesphp artisan db:seed
(optional) to seed database with demo data
Server environment should be configured in .env
(look to .env.example
for inspiration)
Make sure to have Docker installed.
./api up
to start server./api art migrate:refresh --seed
to migrate database and seed demo data./api stop
to stop server after development session
Raw commands
docker-compose up -d
to start api serversdocker-compose stop
to stop serversdocker-compose down
to destroy serversdocker exec -it cms-php bash
to login to php containerdocker exec -it cms-php php artisan migrate:refresh --seed
to refresh migration
Service | Address outside containers |
---|---|
Webserver | localhost:8080 |
phpMyAdmin | localhost:8081 |
Service | Hostname | Port number |
---|---|---|
php-fpm | cms-php-fpm | 9000 |
MySQL | cms-mysql | 3306 (default) |
Memcached | cms-memcached | 11211 (default) |
Redis | cms-redis | 6379 (default) |