Giter Site home page Giter Site logo

imran99744 / react-node-mysql-crud-oparation Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 315 KB

This project is a CRUD (Create, Read, Update, Delete) system built using React, Node.js, Express, and SQL database. The system allows users to perform CRUD operations on a list of items.

JavaScript 65.01% HTML 17.09% CSS 17.91%
expressjs nodejs reactjs sql

react-node-mysql-crud-oparation's Introduction

CRUD System using React, Node.js, Express and SQL Database

Introduction:

This project is a CRUD (Create, Read, Update, Delete) system built using React, Node.js, Express, and SQL database. The system allows users to perform CRUD operations on a list of items. The frontend of the system is built using React and the backend is built using Node.js and Express. The database used is SQL.

Architecture:

The frontend is the view and is responsible for displaying the user interface. The backend is the controller and is responsible for handling requests from the frontend and communicating with the database. The database is the model and is responsible for storing the data.

Functionality:

The system has the following functionality:

  • Create: Users can create a new item by providing its name, description, and other relevant information. Once the item is created, its information is stored in the SQL database and is displayed on the list of items.
  • Read: Users can view the list of items and click on an item to view its details. The details include the name, description, and other relevant information about the item.
  • Update: Users can update the information of an item by clicking on the edit button and providing the new information. Once the information is updated, it is stored in the SQL database and is displayed on the list of items.
  • Delete: Users can delete an item by clicking on the delete button. Once the item is deleted, it is removed from the SQL database and is no longer displayed on the list of items.

Security:

The system has the following security measures:

  • Input validation: All user inputs are validated to prevent SQL injection attacks and other types of attacks.
  • Authentication: The system uses JSON Web Tokens (JWT) for authentication. Once a user logs in, a JWT is created and stored in local storage. This JWT is then sent with every request to the backend to authenticate the user.
  • Authorization: The system uses role-based access control (RBAC) for authorization. There are two roles in the system: user and admin. Users can perform CRUD operations on their own items, while admins can perform CRUD operations on all items.

Conclusion:

This CRUD system using React, Node.js, Express, and SQL database provides a scalable and secure solution for managing a list of items. The system can be easily extended to include additional functionality such as search, filtering, and sorting. The system can also be adapted to work with other types of databases, such as NoSQL databases.

react-node-mysql-crud-oparation's People

Contributors

imran99744 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.