Giter Club home page Giter Club logo

simplemvc's Introduction

What is this?

It is a simple PHP application which runs with Docker from scratch.

Requirements

  • Git client
  • Docker

How to install the project?

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

How to stop the project?

bash app.sh stop

How to open the project in browser?

1 - Web: http://127.0.0.1/

2 - phpMyAdmin: http://127.0.0.1:8184

Troubleshooting

  • 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.

[email protected]

simplemvc's People

Contributors

onurdegerli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.