A basic mvc template
- php 7.0 or higher
- mysql
- create a database
- create a table named `coffee` with the following columns :
- id : int, autoincrement, unique
- name : varchar, 255
- price : float
- description : text
- icon : varchar, 255
- open
config\config.php
- Edit the following lines :
// database name
define("DB_NAME", "Your database name");
// database user
define("DB_USER", "Your database username");
// database password
define("DB_PASSWD", "your user password");
- open a terminal in the
BasicMVC
folder root - run
php -S localhost:8080
- open a browser and navigate to
http://localhost:8080
This project is open source, you can edit and share it anyway you want