Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.79 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.79 KB

Nginx PHP MySQL Build Status GitHub version

Docker running Nginx, PHP-FPM, Composer, MySQL and PHPMyAdmin.

How to run project locally:

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

Install prerequisites

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

Project structure

In all classes define namespace start with App.

For example:

DEFINE:
namespace App\ExampleClass;
USE:
use App\ExampleClass\ExampleClass;
$example = new ExampleClass();

Run the application

  1. Open your favorite browser :