Server side taxi mobile app project build on Staticy framework.
- Run
sh bin/up.sh- Run (development mode)
For this mode you need to copy docker/php/config.php file into src/application/config folder
and change DEV_ENV value from false to be true
sh bin/dev-mode.sh -d --build- Stop
docker compose down- Nginx [https://nginx.com]
sudo apt install nginx- MySQL
sudo apt install mysql-server- PHP v7.4
Make sure you have PHP and project's modules ready :
sudo apt install php7.4 php7.4-fpm
sudo apt install php7.4-mysql php7.4-curl php7.4-mbstring php7.4-xml- Web server configuration
From the root of TaxiDemo project folder :
sudo cp docker/nginx/nginx_taxidemo.conf /etc/nginx/sites-available/taxidemo.confEdit taxidemo.conf file and replace {ProjectFolderPath} value, then:
sudo ln -s /etc/nginx/sites-available/taxidemo.conf /etc/nginx/sites-enabled
sudo systemctl reload nginx.service- Database configuration
Make a copy of config.example.php file as config.php
cp config.example.php config.phpOpen config.php file:
Replace value {DatabaseUsernameValue} of $_db_config['username'] to your database user.
Replace value {DatabasePasswordValue} of $_db_config['password'] to your database user password.
Replace value {RandomSecretValue} of $_auth_config['network_token'] to a random secret string.
Save config.php file.
Create empty database called taxidemo
sudo mysql -u root -p
CREATE DATABASE taxidemo;
exitCreate database tables:
sudo mysql -u root -p --one-database taxidemo < docker/mysql/mysql_taxidemo.sqlVisit http://taxidemo.localhost:80
- Username : admin
- Password : admin