- The example shows how to Building a Vue CRUD App with an Express API and using MySQL as a database.
- The article of this repository https://blog.stackpuz.com/building-a-vue-crud-app-with-an-express-api
- To find more resources, please visit https://stackpuz.com
- Node.js
- MySQL
- Clone this repository
git clone https://github.com/stackpuz/Example-CRUD-Vue-3-Express-4 .
- Change directory to Vue project.
cd view
- Install the Vue dependencies.
npm install
- Change directory to Express project.
cd ../api
- Install the Express dependencies.
npm install
- Create a new database and run /database.sql script to create tables and import data.
- Edit the database configuration in /api/config.js file.
- Run Vue project.
npm run dev
- Run Express API project
node index.js
- Navigate to http://localhost:5173