日本語 | English
All contributions are welcome! Please check How to contribute for details.
This software is released under the MIT License.
Please check How to translate doc and Code of Conduct.
- Required Node.js version: 10.19.0 or higher
Use yarn
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
Use docker
# serve with hot reload at localhost:3000
$ docker-compose up --build
Use yarn
$ yarn install
Use docker
$ docker-compose run --rm app yarn install
- The VSCode extension "Remote Development" is introduced.
- If you select the “Open Folder in Container” root of this repository (as seen in the lower left here(external site)), the environment construction will start.
- If you want to change the settings, modify
'.devcontainer/devcontainer.json
'. Please refer to devcontainer.json reference for more details. - The extension "ESLint" is only valid when executing Remote Container. Please add it to the
'extensions
' of'devcontainer.json
' if necessary. - A detailed procedure can be found [here(external site)] (https://code.visualstudio.com/docs/remote/containers#_managing-extensions).
- When rebuilding the development environment, please execute “Rebuild Container” which can be found at the lower left.
On the production environment, 'production'
is assigned to process.env.GENERATE_ENV
variable, on the other case 'development'
is assigned to the variable.
Please use the variable to detect which enviroinment is used at the runtime.
When master
branch is updated, the HTML files will be automatically built onto production
branch,
and then the production site (https://covid19-oita.netlify.com/) will be also updated.
When development
branch is updated, the HTML files will be automatically built onto dev-pages
branch,
and then the development site (https://dev-covid19-oita.netlify.com/) will be also updated.
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}
Purpose | Branch | Confirmation URL | Remarks |
---|---|---|---|
Development | development | http://dev-covid19-oita.netlify.com/ | base branch. Basically send a Pull Request here |
Production | master | https://oita.stopcovid19.jp/ | Pull Requests other than Administrators are prohibited |
Purpose | Branch | Confirmation URL | Remarks |
---|---|---|---|
Production site HTML | production | https://oita.stopcovid19.jp/ | Location where statically built HTML is located |
-
COVID-19 Infomation (Oita Pref.): The link was posted.
-
Government CIOs' Portal, Japan: The site was introduced as a countermeasure against a new type of coronavirus infection using open source from the Tokyo Metropolitan Government.
-
TOS TV Oita: Some of the site's content was cited.
-
PhotoPRESS COVID-19 Dashboard: Some of the site's content was cited.