It is a simple PHP application which runs with Docker from scratch.
- Git client
- Docker
1 - Clone the project.
git clone https://github.com/onurdegerli/SimpleMVC.git
2 - Change directory to your project home.
cd ~/SimpleMvc
3 - Under the app
folder, copy env.example.php
as env.php
and update the configurations for your local environment.
4 - Under the app
folder, copy phinx.yml.example
as phinx.yml
and update the configurations for your local environment.
5 - In your project folder, run the command below:
bash app.sh start
6 - Run the composer.
bash app.sh php
composer install
7 - Open the php container and run migrates/seeds.
bash app.sh php
vendor/bin/phinx migrate
vendor/bin/phinx seed:run
bash app.sh stop
1 - Web: http://127.0.0.1/
2 - phpMyAdmin: http://127.0.0.1:8184
-
If you would like to install DB directly, please import MySQL dump file which is
simple_mvc.sql
under the project folder. -
If you need to rollback all migrations, please run the command below in
simple_mvc_php
container.
vendor/bin/phinx rollback -t 0
- If you encounter with any dependency problem, please run the command below in
simple_mvc_php
container.
rm -rf vendor
composer install
- If you still encounter with any problem, feel free to contact with me.