This package is a full template/scaffolding using the following technologies:
- Laravel
- Inertia.js
- TailwindCSS
- Vite
- Vue.js (version 3 with Composition API)
- for use with DDEV
- Laravel Vue i18n
At its core, it's using the Laravel PHP Framework, together with Laravel JetStream providing basic authentication, and user profile. Additionally, it provides some sample code to list and edit users.
-
git clone https://github.com/pronego/laravel-inertia-vue3-tailwind-template.git myapp
-
cd myapp/
-
ddev config --project-type=laravel --docroot=public --create-docroot --php-version=8.2
-
Install phpmyadmin:
ddev get ddev/ddev-phpmyadmin
-
Copy
.env.example
to.env
and adjust accordingly -
ddev start
-
ddev composer install
-
ddev exec "php artisan key:generate"
-
ddev npm install
-
ddev php artisan migrate
-
ddev php artisan db:seed
-
Enable xdebug:
ddev xdebug
Verify in.ddev/config.yaml
thatxdebug_enabled: true
-
Adjust
.ddev/config.yaml
, addnodejs_version: "18" hooks: post-start: - exec: "npm run dev -- --host"
-
Create
.ddev/docker-compose.vite.yaml
:
# Override the web container's standard HTTP_EXPOSE and HTTPS_EXPOSE services
# to expose port 3000 of DDEV's web container.
version: '3.6'
services:
web:
expose:
- "5173"
environment:
HTTP_EXPOSE: ${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILHOG_PORT}:8025,5174:5173
HTTPS_EXPOSE: ${DDEV_ROUTER_HTTPS_PORT}:80,${DDEV_MAILHOG_HTTPS_PORT}:8025,5173:5173
ddev restart
Open application and login with
[email protected]
and passwordtest
.
The Laravel framework, Inertia.js, Vite, Vue.js, and Tailwind CSS are open-sourced software licensed under the MIT license. DDEV is licensed under the Apache License 2.0.