Skip to content

hereismhtm/TaxiDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaxiDemo

Server side taxi mobile app project build on Staticy framework.

- Docker containers (easy option)

  • 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

- Manually system setup (hard option)

Requirements

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

Configuration

  • Web server configuration

From the root of TaxiDemo project folder :

sudo cp docker/nginx/nginx_taxidemo.conf /etc/nginx/sites-available/taxidemo.conf

Edit 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.php

Open 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;
exit

Create database tables:

sudo mysql -u root -p --one-database taxidemo < docker/mysql/mysql_taxidemo.sql

- How to login

Visit http://taxidemo.localhost:80

  • Username : admin
  • Password : admin

About

Server side taxi mobile app project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors