jigar-dhulla / basic-crud

Example of crud operations best practices for beginner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRUD Operations Best Practices Example for Beginners

Tests

Getting Started πŸš€

These instructions will guide you through setting up the project on your local machine for development and testing.

Prerequisites

You need to have installed the following software:

  • PHP 8.2
  • Composer 2.0.8
  • MySQL 8.0.23
  • Node 20.10.0

Installing

Follow these steps to set up a development environment:

  1. Clone the repository

    git clone https://github.com/mr-punyapal/basic-crud.git
  2. Install dependencies

    composer install
    npm install
  3. Duplicate the .env.example file and rename it to .env

    cp .env.example .env
  4. Generate the application key

    php artisan key:generate
  5. Run migration and seed

    php artisan migrate --seed
  6. Run the application

    npm run dev
    php artisan serve

How to Test the Application πŸ§ͺ

  • Copy .env.testing.example to .env.testing

  • Update the database configuration according to your local environment

  • Create a new database for testing

  • Run the following commands

    php artisan key:generate --env=testing
    npm install && npm run build
    ./vendor/bin/pest --parallel

Give Feedback πŸ’¬

Give your feedback on @MrPunyapal

Contribute 🀝

Contribute if you have any ideas to improve this project.

About

Example of crud operations best practices for beginner


Languages

Language:PHP 62.3%Language:Blade 25.6%Language:CSS 11.7%Language:JavaScript 0.3%Language:SCSS 0.0%