https://github.com/mrpunyapal/livewire-crud-mary-ui
Example of crud operations with TALL Stack
https://github.com/mrpunyapal/livewire-crud-mary-ui
alpine crud laravel livewire tailwind tall-stack
Last synced: 2 months ago
JSON representation
Example of crud operations with TALL Stack
- Host: GitHub
- URL: https://github.com/mrpunyapal/livewire-crud-mary-ui
- Owner: MrPunyapal
- Created: 2023-12-11T15:20:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-05T09:31:40.000Z (9 months ago)
- Last Synced: 2025-04-12T11:58:22.142Z (2 months ago)
- Topics: alpine, crud, laravel, livewire, tailwind, tall-stack
- Language: PHP
- Homepage:
- Size: 552 KB
- Stars: 33
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Crud Example of livewire best practices (TALL Stack)
## Installation
- Clone the repo
```bash
git clone https://github.com/mr-punyapal/livewire-crud.git&&
cd livewire-crud
```- Install composer dependencies
```bash
composer install
```- Install npm dependencies
```bash
npm install
```
- Create a copy of your .env file
```bash
cp .env.example .env
```
- Generate an app encryption key
```bash
php artisan key:generate
```
- Create an empty database for our application
- In the .env file, add database information to allow Laravel to connect to the database
- Migrate the database
```bash
php artisan migrate
```
- Seed the database
```bash
php artisan db:seed
```
- Run the development server (Ctrl+C to close)
```bash
php artisan serve
```
- Visit [http://localhost:8000](http://localhost:8000) in your browser
### Installation with Docker (Bonus)
Duplicate the `.env.example` file and rename it to `.env`.
```bash
cp .env.example .env
```Change the DB host on `.env` file.
```bash
DB_HOST=livewire-crud-mysql
```Enter into `.docker/` and start containers.
```bash
# Wait until you see PHP-FPM / MySQL success messages.
docker compose up
```In another terminal, also in `.docker/` folder, enter into docker container.
```bash
docker compose exec livewire-crud-app zsh
```Now, inside that container terminal migrate, seed, install dependencies and start server.
```bash
# See `composer.json` to learn about it.composer start
```**Done!** See http://localhost:8216
## Test
- Run the test
```bash
php artisan test
```
## give feedback on [@MrPunyapal](https://x.com/MrPunyapal)