Kool-Cool / laravel-crud-app

A minimal crud application.

Repository from Github https://github.comKool-Cool/laravel-crud-appRepository from Github https://github.comKool-Cool/laravel-crud-app

CRUD APP

A Minimal CRUD Application that fetches product list from database from backend and displays it on frontend.

Technologies Used

  • Laravel
  • React
  • Database - SQLite

Installation

  1. Navigate to the project directory:

  2. Install Composer dependencies:

    composer install
    
  3. Copy the example environment file and configure:

    cp .env.example .env
    
  4. Generate an application key:

    php artisan key:generate
    
  5. Run database migrations:

    php artisan migrate
    
  6. Install NPM dependencies:

    npm install
    
  7. Start the Vite development server:

    npm run dev
    
  8. Running the Project:

    php artisan serve
    

API Routes

The application defines the following routes: http://127.0.0.1:8000/api/products

API RESPONCE

Product Management Routes (grouped)

  • /

    Displays a list of all products.

    Home Page

  • /products/create

    Displays the form to create a new product.

    Create Project

  • /products/{id}/edit

    Displays the form to edit an existing product.

    Eddit Project

  • DELETE /products/{product}: Deletes an existing product (products.destroy)

Notes:

  • These routes are controlled by the ProductController.

About

A minimal crud application.


Languages

Language:PHP 64.6%Language:JavaScript 33.5%Language:CSS 1.6%Language:Blade 0.4%