Skip to content

chenyu020816/TSDC-Online-Resource-Website

Repository files navigation

Online Resource Website

Create Website (Backend)

  1. 建立資料庫
docker compose up -d
  1. 開啟網頁
docker build -t tsdc_web .
docker run -p 8000:8000 --rm --mount src="$(pwd)",target=/website,type=bind tsdc_web

網頁連結 localhost:8000

  1. 進入資料庫
docker exec -it tsdc_db mysql -uadmin -ptsdc_web tsdc_web

Create Website (Frontend)

yarn 官方下載:https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable

  1. 進入前端資料夾
cd templates
  1. 安裝 dependencies
yarn install
  1. 啟動
yarn start
  1. 封裝
yarn build

如果沒有先執行 yarn build ,那從後端 app.py 啟動的前端畫面會沒有更動。

代碼格式

pip install pre-commit

提交代碼時

git add .
pre-commit run
git commit ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published