Example of sales dashboard built on top of simple MVC
- Docker
- docker-compose
$ cd www
$ cp .env.example .env
$ cd .docker
$ docker-compose build
# Start the containers
$ docker-compose up -d
$ docker-compose exec php-fpm composer install
$ docker-compose exec -T mariadb mysql -udefault -psecret default < ../database.sql
- Docker containers are in
.docker
folder (nginx, mariadb and php8-fpm) www
folder contains code- Routes are in
www/routes/routes.php
- Only GET and POST supported for now
- Controllers are invokable, i.e. method
__invoke(RequestInterface $request)
is mandatory - Frontend: Bootstrap 5.1.0 + ChartJS for graph
$ docker-compose exec php-fpm composer lint