- Docker Desktop
- WSL
- Laravel
- Inertia JS (React JS)
- CSS (Tailwind)
- Database (SQlite)
- Sail
- open your terminal
git clone git@github.com:mhardaniel/laravel-inertia-react--task-manager.git
cd laravel-inertia-react--task-manager
cp .env.example .env
php artisan key:generate
./vendor/bin/sail up -d
./vendor/bin/sail npm run dev
php artisan migrate
- you can access the api routes at: http://localhost:8000
METHOD | ROUTE | SRC |
---|---|---|
GET | tasks | tasks.index › TaskController@index |
POST | tasks | tasks.store › TaskController@store |
GET | tasks/trashed | tasks.trashed › TaskController@trashed |
DELETE | tasks/trashed/{task} | tasks.forceDestroy › TaskController@forceDestroy |
GET | tasks/{task} | tasks.show › TaskController@show |
PUT | tasks/{task} | tasks.update › TaskController@update |
DELETE | tasks/{task} | tasks.destroy › TaskController@destroy |
PATCH | tasks/{task}/attach | tasks.attach › TaskController@attach |
PATCH | tasks/{task}/save-as-draft | tasks.save-as-draft › TaskController@saveAsDraf |
Tasks that are moved to trash can be deleted permanently either manually or within 30 days.
php artisan model:prune --pretend
mhardaniel