This is a simple CRUD (Create, Read, Update, Delete) application that manages student names and email IDs. The application is built using MySQL for the database, React for the frontend, and Node.js with Express for the backend. XAMPP is used to provide a local development environment.
Before you begin, make sure you have the following installed on your machine:
-
Clone the Repository:
git clone https://github.com/Webdevava/MySQL-ERN-CRUD.git
-
Install Backend Dependencies:
cd backend npm install
-
Create MySQL Database:
- Open XAMPP and start the MySQL server.
- Create a new database named
crud
. - Import the
database.sql
file into thecrud
database to set up the required table.
-
Configure Database Connection:
- Update the database connection configuration in
backend/index.js
.
- Update the database connection configuration in
-
Install Frontend Dependencies:
cd ../frontend npm install
-
Start the Application:
-
Start the Node.js server:
cd ../backend node index.js
-
Start the React app:
cd ../frontend npm run dev
The Frontend should now be accessible at
http://localhost:5173
. The Backend should now be accessible athttp://localhost:8000
. -
- Visit
http://localhost:3000
in your browser to interact with the CRUD application. - You can perform CRUD operations on student names and email IDs.
backend
: Contains the Node.js server files.frontend
: Contains the React frontend files.
-
Frontend:
- React
-
Backend:
- Node.js
- Express
- MySQL(XAMPP)
Feel free to contribute to this project.
- Webdevava