In this tutorial, we'll build a RESTful CRUD application with PHP
& MySQL in the backend and Vue.js in the frontend. We'll also be
using Axios for sending Ajax request to PHP from Vue.
The Vue.js library, Axios client and Ajax technology allows you
to fetch and display data in your application without the need to
refresh the whole page each time.
For database we'll be using MySQL, the most popular database used
by PHP developers.
Creating the MySQL Database
In your terminal, start the MySQL client using: mysql -u root -p
Enter your password when prompted and hit Enter.
Next, create a database using the following SQL statement:
mysql> create database vuedb;
Next, create the following SQL table in your vuedb database:
mysql> use vuedb; mysql> CREATE TABLE `contacts` ( `id`
int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, `name` varchar(100)
NOT NULL, `email` varchar(100) NOT NULL, …
[Read more]