CRUD project documentation

here is a video for the project

By Eng.Bassem Hazem Mahmoud

Overview

This is a simple Product Management System "CRUD operations": (Create, Read, Update, Delete) project with MySQL database , frist integration with the Front-end and Back-end the skills used are :

HTML , CSS , Bootstrap , JS , Jquery , Regex validation -> for the FE (client) section

Node.js , MySQL , express , basics api -> for the BE (server) section


Details

API Endpoints:

[GET] /

        {
            "message": "done",
            "data": [...]
        }  
        

[POST] /products

  • Request Body:
  •         {
                "name": "Product Name",
                "price": 999.99,
                "description": "Product Description"
            }
            
  • Response:
  •         {
                "message": "done"
            }                  
            

    [PUT] /products

  • Request Body:
  •         {
                "id": 1,
                "name": "Updated Product",
                "price": 999.99,
                "description": "Updated Description"
            }      
            
  • Response:
  •         {
                "message": "done"
            }                  
            

    [DELETE] /products

  • Request Body:
  •         {
                "id": 1
            }  
            
  • Response:
  •         {
                "message": "done"
            }                  
            

    [GET] /products/:id

  • Response:
  •         {
                "message": "done",
                "data": [...]
            }                 
                

    Front-End Features:

    The front-end uses Bootstrap for styling and jQuery for making API requests to the backend. Key features include:

    Main Functions:
    Database Schema:
    Validation: