This project is an example of how to use ElectricSQL with Laravel. It is a simple todo list application that allows you to add, edit, and delete todos with a React frontend connected to a Laravel backend with InertiaJS.
This project uses DDEV for local development environment setup.
DDEV is required to run this project. To install DDEV:
- First, install Docker for your operating system (on macOS, I recommend using OrbStack).
- Install DDEV by following the instructions for your OS:
- macOS (with Homebrew):
brew install ddev/ddev/ddev
- Windows and other systems: Visit the official DDEV installation guide for detailed instructions.
- Clone this repository:
git clone https://github.com/braedencrankd/electric-laravel-example.git
-
Run
ddev start
to start the development environment. -
Run
ddev composer install
to install the dependencies. -
Run
ddev npm install
to install the dependencies. -
Run
cp .env.example .env
to copy the environment variables. -
Run
ddev artisan key:generate
to generate the application key. -
Run
ddev artisan migrate:fresh --seed
to run the migrations.