Docker running Nginx, PHP-FPM, Composer, MySQL and PHPMyAdmin.
Start docker desktop!
Go to project directory and press:
docker-compose up --build -d
And install composer with command bellow:
cd web/app/
composer update
To insert database go to http://localhost:8080 and use:
- "mysql" for Server
- "dev" for user name
- "dev" for password
After login use database_ini.sql for import database.
If everything goes well go here: http://localhost:8000
All requisites should be available for your distribution. The most important are :
Go to composer.json and press install. You should see vendor folder.
This project use the following ports :
Server | Port |
---|---|
MySQL | 8989 |
PHPMyAdmin | 8080 |
Nginx | 8000 |
Nginx SSL | 3000 |
In all classes define namespace start with App.
For example:
DEFINE:
namespace App\ExampleClass;
USE:
use App\ExampleClass\ExampleClass;
$example = new ExampleClass();
-
Open your favorite browser :
- http://localhost:8000
- https://localhost:3000 (HTTPS not configured by default)
- http://localhost:8080 PHPMyAdmin (username: dev, password: dev)