This project demonstrates how to connect a MySQL database with a backend server and perform full CRUD (Create, Read, Update, Delete) operations.
- Backend: Node.js, Express.js
- Database: MySQL
- 🔗 Connection with MySQL database
- ✅ Create new records
- 📄 Read data from the database
- ✏️ Update existing records
- 🗑️ Delete records
-
Clone the repository:
https://github.com/Khalil-deve/backend-crud-with-mysql
-
Install dependencies:
npm install
-
Set up your MySQL database and update the credentials in
config/db.jsor.envfile. -
Start the server:
node index.js