Skip to content

Josephat-S/CRUD-using-React.js-and-Node.js-with-Mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Application using React.js, Node.js, and MySQL

A full-stack web application that demonstrates basic CRUD (Create, Read, Update, Delete) operations. The frontend is built with React.js, the backend uses Node.js (with Express), and data is persisted in a MySQL database. This project is a practical example for beginners and intermediate developers looking to understand how to connect a React frontend to a Node.js backend with a relational database.


🚀 Features

  • Create new records in the database via an intuitive UI.
  • Read and display existing records in a dynamic table.
  • Update existing records with inline editing or dedicated forms.
  • Delete records with confirmation prompts for safety.

🛠️ Tech Stack

  • Frontend: React.js, TailwindCSS
  • Backend: Node.js, Express.js
  • Database: MySQL

📦 Installation

Prerequisites

1. Clone the repository

git clone https://github.com/Josephat-S/CRUD-using-React.js-and-Node.js-with-Mysql.git
cd CRUD-using-React.js-and-Node.js-with-Mysql

2. Set up the Backend

  • Sever
  • Install dependencies:
npm install
  • Configure your MySQL database:

    • Create a database in MySQL.
    • Update your database configuration with your DB credentials.
  • Start the backend server:

npm start

3. Set up the Frontend

  • Navigate to the frontend directory.
  • Install dependencies:
npm install
  • Start the React development server:
npm run dev

4. Access the Application

Open http://localhost:5173 in your browser.


📖 Usage

  • Use the web interface to add, view, edit, and delete records.
  • All changes are reflected in the MySQL database.

📄 License

This project is licensed under the MIT License.


✨ Project Description

This project is a hands-on demonstration of full-stack web development using modern JavaScript technologies. It provides a clear example of how to:

  • Structure a web application with separate client and server codebases.
  • Connect a React frontend to a Node.js/Express backend.
  • Interface with a MySQL database for persistent data storage.

Perfect for those learning full-stack development or seeking a template for their own CRUD-based projects.


About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published