GithubHelp home page GithubHelp logo

lightning's Introduction

Lightning

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

本仓库使用Laravel 8 + jet-stream(inertia.js)重写Lightning。感谢作者 Lucas Yang。

安裝

下載專案後執行 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

参考

原始版本(laravel 7 + laravel/ui): ycs77 / lightning 系列教程關於我用 Laravel 寫 SPA 卻不寫 API 的那檔事

lightning's People

Contributors

codermusou avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.