NYCUarchery / archeryWebsite

1 stars 0 forks source link

setup an .env file in backend #191

Open Mushroom-MSL1L opened 1 month ago

Mushroom-MSL1L commented 1 month ago

後端寫死的讀檔路徑正在增加當中,應該在main旁邊放一個.env 然後用godotenv去取得所有相關路徑。

目前已有的寫死路徑10/19:

  1. internal/pkg/session.go (getconfig)
  2. internal/endpoint/2JSON.go (很多)
  3. internal/database/DB.go (connectDB, setInitialDataWithSeeder)
  4. internal/database/DummyDBSetup.go (InitDummyData, connectTestDB)
  5. main.go
Mushroom-MSL1L commented 3 weeks ago
  1. interna;/database/DB.go/setDictator