$ git clone https://github.com/felloz/clientes_crud
composer install
npm install
NOTE The next step wasn’t tested so if you have some troubles just skip it and find a database copy in the Database folder.
<?php
use Model\Database;
require_once '../vendor/autoload.php';
//Set your parameters here
$database = new Database('mysql', '127.0.0.1', 'prueba_actual2', 'root');
$database->createDb();
$database->createTable();
Database/Connection.php
, this file is the main connection for the whole Crud.class Connect
{
public $pdo;
/**
* Constructor para crear la conexion al instanciar
*/
public function __construct()
{
try {
$this->pdo = new PDO('mysql:host=127.0.0.1;dbname=prueba_actual2', 'root', '');
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $e) {
die($e->getMessage());
}
}
}
$ php created_database.php
Live Demo: http://honeymails:8000/
Author: felloz
Demo: http://honeymails:8000/
Source Code: https://github.com/felloz/clientes_crud
#vue #vuejs #javascript #php