更新 'readme.md'
撰寫接手專案的步驟
This commit is contained in:
parent
0ef01aa8cf
commit
f143258492
30
readme.md
30
readme.md
@ -1 +1,29 @@
|
|||||||
# 部落客媒合系統
|
部落客媒合系統
|
||||||
|
===
|
||||||
|
|
||||||
|
## 專案參數與環境重建
|
||||||
|
當你Clone下來的專案,因為有git採用了 `.gitignore` 機制,比較敏感的參數(像是APP_KEY、資料庫帳密等)與共用的函式庫檔案不會包含進來,必須在自己這邊重建。
|
||||||
|
|
||||||
|
### 1. 將你的專案下載回來,並進入此專案目錄
|
||||||
|
$ git clone <此專案網址>
|
||||||
|
$ cd BlogMatch
|
||||||
|
|
||||||
|
### 2. 安裝PHP相關函式庫
|
||||||
|
$ composer install
|
||||||
|
|
||||||
|
### 3. 安裝前端相關函式庫
|
||||||
|
$ npm install
|
||||||
|
|
||||||
|
### 4. 設定 .env 檔
|
||||||
|
將 `.env.example` 複製成 `.env`。
|
||||||
|
並修改裡面的內容,如資料庫的相關參數DB_DATABASE=、DB_USERNAME和DB_PASSWORD。
|
||||||
|
|
||||||
|
### 5. 重新產生 `APP_KEY`
|
||||||
|
$ php artisan key:generate
|
||||||
|
|
||||||
|
### 6. 重建資料庫
|
||||||
|
待補...
|
||||||
|
|
||||||
|
## 執行此專案
|
||||||
|
### 快速啟動
|
||||||
|
$ php artisan serve
|
Loading…
x
Reference in New Issue
Block a user