這個專案是個復刻 GitHub 的練習專案,可以透過 SSH 連線 push repo,檢視專案內容,pull requests,以及合併分支。
帳號內包含了六個各有特色的專案及一些測試專案,建議可查看 FengChenShowGit 這個專案可以得到較完整的測試資料
測試帳號:[email protected] | aaaaaaaa
- Ruby 版本:2.6.5
- Rail 版本:6.0.2.2
- 資料庫:postgreSQL
注意:你必須安裝 ruby 2.6.5 才能使用
- 本專案有使用 rmagick ,你可能會需要先在電腦安裝 Imagick
- 本專案還有使用 GitHub-linguist,你也會需要安裝 cmake, pkg-config, icu4c 等套件
- 使用終端機進入專案目錄
- 輸入
yarn --check-files
- 輸入
bundle
- 在 config 資料夾建立 database.yml 檔案
- 將 config/database.yml.example 的內容貼進去 database.yml,並更改您需要的設定
- 執行 rails db:create
- 執行 rails db:migrate
- 在 config 資料夾建立 application.yml 檔案
- 將 config/application.yml.example 的內容貼進去 application.yml
- 依照檔案指示輸入所需的環境變數
- 回到終端機並輸入 rails s
- 打開瀏覽器並輸入 localhost:3000 即可進入專案