Skip to content

Latest commit

 

History

History
113 lines (77 loc) · 5.7 KB

README_TH.md

File metadata and controls

113 lines (77 loc) · 5.7 KB

Niigata COVID-19 Task Force website

Niigata COVID-19 Task Force website

การร่วมพัฒนา (How to Contribute)

เปิดรับการพัฒนาและอัพเดทต่างๆ! โปรดอ่าน How to contribute

จรรยาบรรณ (Code of Conduct)

โปรดอ่าน Code of conduct for developers

ลิขสิทธิ์ (License)

ซอฟต์แวร์อยู่ภายใต้ลิขสิทธิ์ the MIT License.

[please translate me]

Please check How to translate doc.

[/please translate me]

สำหรับนักพัฒนา (For Developers)

การติดตั้งโปรแกรมเพื่อการพัฒนา (How to Set Up Environments)

  • ต้องการ Node.js เวอร์ชั่น: 10.19.0 หรือสูงกว่า

ใช้ yarn

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

ใช้ docker

# serve with hot reload at localhost:3000
$ docker-compose up --build

การแก้ปัญหา Cannot find module **** error

ใช้ yarn

$ yarn install

ใช้ docker

$ docker-compose run --rm app yarn install

[please translate me]

VSCode + Remote Cotainersで開発する場合

  1. VSCodeの拡張機能「Remote Development」を導入します。
  2. この画像(外部サイト)のように左下部の「Open Folder in Container」でこのリポジトリのルートを選択すれば環境構築が始まります。

[Topic]

  • 設定を変更したい場合は、.devcontainer/devcontainer.jsonを修正してください。
    詳細はdevcontainer.jsonのリファレンスを参照してください。
  • Remote Container実行時のみ有効な拡張機能「ESlint」を導入していますが、必要に応じてdevcontainer.jsonextensionsに追加してください。
    詳細な手順はこちら(外部サイト)を参照してください。
  • 開発環境を再構築する場合は、左下部の「Rebuild Container」を実行してください。 [/please translate me]

ขั้นตอนการ Deploy ไปยัง Production (Deployment to Staging & Production Environments)

ถ้า 'master' ได้รับการแก้ไขหรือปรับปรุง HTML จะถูกสร้างและส่งไปยัง 'production' โดยอัตโนมัติ และ เว็บไซต์ (https://stopcovid19.metro.tokyo.lg.jp/) จะได้รับการอัพเดท

ถ้า 'staging' ได้รับการแก้ไขหรือปรับปรุง HTML จะถูกสร้างและส่งไปยัง 'gh-pages' โดยอัตโนมัติ และ เว็บไซต์ (https://stg-covid19-tokyo.netlify.com/) จะได้รับการอัพเดท

ถ้า 'development' ได้รับการแก้ไขหรือปรับปรุง HTML จะถูกสร้างและส่งไปยัง 'dev-pages' โดยอัตโนมัติ และ เว็บไซต์ (https://dev-covid19-tokyo.netlify.com/) จะได้รับการอัพเดท

[PLEASE TRANSLATE ME]

Branch rules

Pull Request is allowed only for development, dev-i18n and dev-hotfix. Please use the following naming rules for the branch when sending a Pull Request.

Feature implementation: feature/#{ISSUE_ID}-#{branch_title_name} Hotfix commit: hotfix/#{ISSUE_ID}-{branch_title_name}

Basic branch

Purpose Branch Confirmation URL Remarks
Development development http://dev-covid19-tokyo.netlify.com/ base branch. Basically send a Pull Request here
Hotfix branch dev-hotfix None Fixes that should be applied to production in haste. Use this if requested by the administrator
i18n working branch dev-i18n https://i18n-covid-tokyo.netlify.com/ Temporarily used
Staging staging https://stg-covid19-tokyo.netlify.com/ For final confirmation before production. Non-admin pull requests are prohibited
Production master http://stopcovid19.metro.tokyo.lg.jp/ Pull Requests other than Administrators are prohibited

Branch used by the system

| Purpose | Branch | Confirmation URL | | ---- | -------- | ---- | ---- | Production site HTML | production | http://stopcovid19.metro.tokyo.lg.jp/ | Location where statically built HTML is located | Staging site HTML | gh-pages | https://stg-covid19-tokyo.netlify.com/ | Where to find statically built HTML | | For OGP working directory | deploy / new_obp | None | For updating OGP |

[/PLEASE TRANSLATE ME]