/vuePHP

Select data with PHP from MySQL using Vue and Axios

Primary LanguageJavaScript

Select Data from MySQL using PHP, VueJS and Axios

Installation

  1. Install Dependencies

In the command line

composer install


  1. Create Database

Create Database "vuePHP"


  1. Create Table

Import products.sql file


  1. Change Credentials MySQL

In file app/Models/DB.php change the line:

DB.php

const HOST          =   "localhost";
    const DBNAME    =   "your-DB-name";
    const USER      =   "your-user-mysql";
    const PASS      =   "your-password-mysql";

  1. Change URL root

In file index.php change the line:

index.php

define( 'BASE_URL', 'YOUR_URL_ROOT' );

Contribute

Contributions are always welcome! Please read the contribution guidelines first.

License

CC0

To the extent possible under law, Miguel Santisteban has waived all copyright and related or neighboring rights to this work.