### Manual Installation: Copy .env.example Source: https://devdojo.com/wave/docs/install Copies the example environment file to a new .env file, which will be used to configure your application's settings. This is a crucial first step in manual installation. ```bash cp .env.example .env ``` -------------------------------- ### Database Configuration: MySQL Example Source: https://devdojo.com/wave/docs/install Example of how to configure Wave to use a MySQL database connection by modifying the .env file. This includes setting the connection type, host, port, database name, username, and password. ```dotenv CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database-name DB_USERNAME=root DB_PASSWORD='' ``` -------------------------------- ### Example installed.json for Wave Plugins Source: https://devdojo.com/wave/docs/features/plugins This JSON file tracks installed plugins by listing their names in an array. It's located in the 'resources/plugins' directory. ```json [ "discussions" ] ``` -------------------------------- ### Manual Installation: Database Migrations and Seed Source: https://devdojo.com/wave/docs/install Applies database migrations to set up the necessary tables and seeds the database with initial data. This ensures your database is ready for Wave to function correctly. ```bash php artisan migrate php artisan db:seed ``` -------------------------------- ### Manual Installation: Install Composer Dependencies Source: https://devdojo.com/wave/docs/install Installs all the necessary PHP dependencies for Wave using Composer. This command reads the composer.json file and downloads the required packages. ```bash composer install ``` -------------------------------- ### Create Project Form Component (PHP/Livewire/Volt) Source: https://devdojo.com/wave/docs/your-functionality This Livewire/Volt component in PHP handles the creation of new projects. It includes form fields for project name, description, start date, and end date, with built-in validation using Livewire's `#[Validate]` attribute. Upon successful submission, it creates a new project associated with the authenticated user and redirects to the projects list. It requires Livewire and Laravel Volt. ```php validate(); $project = auth()->user()->projects()->create($validated); session()->flash('message', 'Project created successfully.'); $this->redirect(route('projects')); } } ?> ``` -------------------------------- ### Complete Blade Layout with Asset Inclusion Source: https://devdojo.com/wave/docs/features/themes This is a full example of an `app.blade.php` layout file. It includes essential meta tags, the title, Filament and Livewire styles, your theme's Vite-managed assets, and a basic body structure. This serves as a starting point for your theme's authenticated user layout. ```blade
This is a simple example of a blank theme. Click here to view the docs
You have {{ $this->remaining }} things on your todo list.
You don't have any projects yet.
| Name | Description | Start Date | End Date | Actions |
|---|---|---|---|---|
| {{ $project->name }} | {{ Str::limit($project->description, 50) }} | {{ $project->start_date ? $project->start_date->format('Y-m-d') : 'N/A' }} | {{ $project->end_date ? $project->end_date->format('Y-m-d') : 'N/A' }} | Edit |
This is a simple example of a blank theme. Click here to view the docs