Skip to content

fulfulf/ntuee-plus

 
 

Repository files navigation

NTUEE_Plus_website

Run

  • get true .env from here
# whenever new package is used.
yarn local-install

yarn dev
# 進入http://localhost:1993

Contribution

please read How to Contribute first.

前端 coding style 規則

https://www.notion.so/Tidy-Up-Coding-style-de130c77c8654b61ba0e45c941b55ed4

後端/api 使用方法

https://github.com/NTUEE-PLUS/EndOfWeb/tree/main/backend/routes

EE+ MD

https://hackmd.io/CSNbja7XTYCYquYxgq4Xow

會議記錄

https://hackmd.io/7RZ9XyL7Qa-7aFXaZSfw_w

電二主機

  • 下載docker-compose.yml,需要請求權限
    • 請確認 newReg 的值,false 表示直接允許註冊,true 表示照片驗證(deprecated),version3 表示寄信 or 照片驗證
  • 執行

Initialize

$ docker-compose pull
$ docker-compose up -d (噴error時取消-d可以看到完整錯誤訊息)
$ docker-compose exec web npm run reset-db
open http://localhost:1993
  • if docker no working well, try this in powershell
$ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

Update

$ docker-compose pull
$ docker-compose up -d (噴error時取消-d可以看到完整錯誤訊息)

Heroku

env setting

  • In heroku/settings, modify config vars

image

GCP

manual deploy

# in cloud shell
$ gcloud builds submit
  • This will take 5~15 mins, depends on whether package.json was changed. If package wasn't changed, cache will be used; Otherwise, yarn install will take a lot of time.

auto deploy (with secret .env)

  1. set trigger in cloud build and add arg fields

    image

  2. In cloudbuild.yaml, use --build-arg to read args

    image

  3. In Dockerfile, use ARG and ENV to set env

    image

  4. If want to use .env in frontend, set pulgin in webpack.config.js

    image

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.0%
  • SCSS 12.4%
  • HTML 7.6%