CAFECA-IO / iSunCoin-official

https://i-sun-coin-official.vercel.app
MIT License
0 stars 0 forks source link

Repo setting #10

Closed godmmt closed 2 weeks ago

godmmt commented 3 weeks ago

專案建置

可以參考以前的工作單 & KM

  1. https://github.com/CAFECA-IO/BAIFA/issues/341
  2. https://github.com/CAFECA-IO/BAIFA/issues/414
  3. https://github.com/CAFECA-IO/BAIFA/issues/417
  4. https://github.com/CAFECA-IO/BAIFA/issues/731
  5. https://github.com/CAFECA-IO/KnowledgeManagement/blob/master/survey/PreCommit.md
  6. 專案建立| Project Creation
  7. 建立 Next.js

STEP:

godmmt commented 3 weeks ago

took 0.5 hr

remain 4.5

godmmt commented 3 weeks ago

發現 KM 有些地方需要更新就一併更新

更新 KM: 專案建立| Project Creation

更新的部分 See here

godmmt commented 3 weeks ago

在 Github 上新增 Repo iSunCoin-official 後 clone 到本地端

這時候路徑應該會與 repo 同樣名字: ~/Desktop/iSunCoin-official

接著進入資料夾後打開終端機輸入

npx create-next-app . --ts

這時會報錯說

Could not create a project called "iSunCoin-official" because of npm naming restrictions:
    * name can no longer contain capital letters

因為他不接受大寫 所以這時候就把本地端的資料夾先改為小寫的 isuncoin-official 再次在終端機輸入

npx create-next-app . --ts

就可以了

接著會進入一些設定 選擇:

ESLint - Yes
Tailwind CSS - Yes
src directory - Yes
App Router - Yes
import alias (@/*) - No

成功新增 Next.js 專案後就可以再把本地端的資料夾名字改回原本的 iSunCoin-official

godmmt commented 3 weeks ago

GitHub 上的使用者是可以依照不同專案設定我們自己的名字

像是我不希望我在專案中的 commit 紀錄我的 GitHub username 我就可以個別在專案中的 git config 中設定 設定方式可以用終端機輸入或者直接下載 GitHub Desktop 終端機方式參考這裡

godmmt commented 3 weeks ago

PreCommit Setting

KM

Steps:

godmmt commented 3 weeks ago

took 6 hours

done.

Total time: 6.5 hours