Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
/ lightning Public archive

【依賴過舊,不建議使用】關於我用 Laravel 寫 SPA 卻不寫 API 的那檔事 - 系列範例,使用和 Laravel + Vue.js + Inertia.js + Tailwind CSS 構建的簡易部落格平台。

License

Notifications You must be signed in to change notification settings

ycs77/lightning

Repository files navigation

Lightning

關於我用 Laravel 寫 SPA 卻不寫 API 的那檔事 系列範例,使用和 Laravel + Vue.js + Inertia.js + Tailwind CSS 構建的簡易部落格平台。

安裝

下載專案後執行 Composer:

composer install

設定 .env 檔:

cp .env.example .env
vim .env

# .env
APP_URL=https://lightning.test
...
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=lightning
DB_USERNAME=[username]
DB_PASSWORD=[password]

跑 Migrate:

php artisan migrate

然後新增本地 Storage 的公開連結:

php artisan storage:link

最後編譯前端資源:

yarn
yarn dev

About

【依賴過舊,不建議使用】關於我用 Laravel 寫 SPA 卻不寫 API 的那檔事 - 系列範例,使用和 Laravel + Vue.js + Inertia.js + Tailwind CSS 構建的簡易部落格平台。

Topics

Resources

License

Stars

Watchers

Forks

Languages