Skip to content

codeforsapporo/covid19

 
 

Repository files navigation

新型コロナウイルス感染症対策サイト北海道版

All Contributors

Illustration by LITTLEKIT under CC BY 4.0

Goal

東京都庁による新型コロナウイルス感染症対策サイトの北海道版をつくるべや

Tokyo

北海道版稼働イメージ(適宜更新)

How to Contribute / 貢献の仕方

Issues にあるいろいろな修正にご協力いただけると嬉しいです。

Code for Sapporo のSlackでも情報共有を行っています。加入はこちらからどうぞ

本プロジェクトに関係するチャンネルは下記になります。

全般の相談
#0201covid19hkd_all
システム関係
#0202covid19hkd_sys
データ関係
#0203covid19hkd_data
Githubのissueメンション
#0204covid19hkd_notify

詳しくは貢献の仕方を御覧ください。

All contributions are welcome! Please check How to contribute for details.

License / ライセンス

本ソフトウェアは、MITライセンスの元提供されています。 This software is released under the MIT License.

For Developers / 開発者向け情報

How to Set Up Environments / 環境構築の手順

Use yarn / yarn を使う場合**

# install dependencies
$ yarn install

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

Use docker / docker compose を使う場合

# serve with hot reload at localhost:3000
$ docker-compose up
  • docker-compose up 初回実行時に下記のエラーが出た場合
yarn run v1.21.1
$ cross-env NODE_ENV=development nuxt-ts
covid19 | /bin/sh: cross-env: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
covid19 exited with code 127

なんらかの理由でyarn installが失敗していると考えられるので、下記を実行後、再度 docker-compose up してみてください。

$ docker-compose run --rm app sh
/app # yarn install
/app # exit

Use npm / npm を使う場合

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

Deployment to Staging & Production Environments / ステージング・本番環境への反映

master ブランチがアップデートされると、自動的に production ブランチにHTML類がbuildされます。そして、本番サイト https://stopcovid19.hokkaido.dev が更新されます。

development ブランチがアップデートされると、自動的に dev-pages ブランチにHTML類がbuildされます。そして、開発用サイト https://stopcovid19-dev.hokkaido.devhttp://133.242.52.161:58000 が更新されます。

When master branch is updated, the HTML files will be automatically built onto production branch, and then the production site (https://stopcovid19.hokkaido.dev) will be also updated.(under construction)

When development branch is updated, the HTML files will be automatically built onto dev-pages branch, and then the development site (https://stopcovid19-dev.hokkaido.dev and http://133.242.52.161:58000) will be also updated.

東京都版との整合性についての方針

forkした後の更新が激しいので(東京都版、北海道版共に)、機械的なmergeはせず必要なものがあれば都度cherry-pickする方針とします。

About

北海道 新型コロナウイルス対策サイト

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 89.2%
  • PHP 4.0%
  • JavaScript 3.2%
  • TypeScript 2.5%
  • SCSS 0.7%
  • Python 0.2%
  • Other 0.2%