[PLEASE TRANSLATE ME]
Install the following application to the environment for development.
Application name | Application version(Fill in only if specified) | Installation conditions |
---|---|---|
Node.js | 10.19.0 or plus récent | Required |
Visual Studio Code | If you use Visual Studio Code | |
yarn | When executing this program with yarn |
|
docker compose | When executing this program with docker compose |
|
Vagrant | When executing this program with Vagrant |
To use Visual Studio Code, install the following extension.
Extensions | Installation conditions |
---|---|
ESLint | Any |
Vetur | Any |
TSLint | Any |
Debugger for Chrome | Any |
Remote Development | When developing with Visual Studio Code and Remote Containers |
The command is executed in the working copy root directory.
[/PLEASE TRANSLATE ME]
# installe les dépendances
$ yarn install
[PLEASE TRANSLATE ME]
After executing the following command, you can check the program under development by accessing http://localhost:3000 .
[/PLEASE TRANSLATE ME]
# Sers le site avec hot-reload à l'adresse localhost:3000
$ yarn dev
[PLEASE TRANSLATE ME]
You can disable accessibility auditing, which would make your local server faster.
# serve with hot reload at localhost:3000
$ yarn dev-no-axe
[/PLEASE TRANSLATE ME]
[PLEASE TRANSLATE ME]
Build the dependency again and run the program.
[/PLEASE TRANSLATE ME]
[PLEASE TRANSLATE ME]
After executing the following command, you can check the program under development by accessing http://localhost:3000 .
[/PLEASE TRANSLATE ME]
# Sers le site avec hot-reload à l'adresse localhost:3000
$ docker-compose up --build
[PLEASE TRANSLATE ME]
[/PLEASE TRANSLATE ME]
[PLEASE TRANSLATE ME]
Stop the program and execute the following command.
[/PLEASE TRANSLATE ME]
$ docker-compose run --rm app yarn install
[PLEASE TRANSLATE ME]
After executing the following command, you can check the program under development by accessing http://localhost:3000 .
[/PLEASE TRANSLATE ME]
# Sers le site avec hot-reload à l'adresse localhost:3000
$ vagrant up
[PLEASE TRANSLATE ME]
If you select the “Open Folder in Container” root of this repository (as seen in the lower left Quick start: Try a dev container (external site)), the environment construction will start.
You can check the program under development by accessing http://localhost:3000 after building the environment.
- 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/devcontainer.json
if necessary. - A detailed procedure can be found Managing extensions (external site).
- When rebuilding the development environment, please execute “Rebuild Container” which can be found at the lower left.
[/PLEASE TRANSLATE ME]
Dans l'environnement de production, la valeur 'production'
est attribuée à la variable process.env.GENERATE_ENV
, le reste du temps la valeur assignée est 'development'
.
Veuillez utiliser cette variable pour détecter quel type d'environnement est executé.
[PLEASE TRANSLATE ME]
When the branch listed in the left column of the table below is updated, the branch and website will be updated automatically.
branch | A branch where HTML is built and updated | Website updated |
---|---|---|
master |
production |
The production site https://stopcovid19.metro.tokyo.lg.jp/ |
staging |
gh-pages |
The staging site https://stg-covid19-tokyo.netlify.app/ |
development |
dev-pages |
The development site https://dev-covid19-tokyo.netlify.app/ |
[/PLEASE TRANSLATE ME]
Les Pull Request sont permises seulement sur development
.
Veuillez utiliser le schema suivant pour nommer vos Pull Request.
[PLEASE TRANSLATE ME]
Types of changes | Naming rules for the branch |
---|---|
Nouvelle feature | feature/#{ISSUE_ID}-#{branch_title_name} |
Hotfix | hotfix/#{ISSUE_ID}-#{branch_title_name} |
[/PLEASE TRANSLATE ME]
But | Branche | URL | People who can make pull requests | Notes |
---|---|---|---|---|
Development | development | https://dev-covid19-tokyo.netlify.app/ | All developers | Branche de base. Faites votre Pull Request ici. |
Staging | staging | https://stg-covid19-tokyo.netlify.app/ | Only administrators | Pour confirmation avant production. Pull request d'utilisateurs non-admin sont defendues. |
Production | master | https://stopcovid19.metro.tokyo.lg.jp/ | Only administrators | Pull request d'utilisateurs non-admin sont defendues. |
[/PLEASE TRANSLATE ME]
But | Branche | URL | Notes |
---|---|---|---|
Production site HTML | production | https://stopcovid19.metro.tokyo.lg.jp/ | Place ou les pages HTML statiques sont stockees. |
Staging site HTML | gh-pages | https://stg-covid19-tokyo.netlify.app/ | Ou trouver l'HTML statiquement construit. |
Dossier de travail OGP | deploy / new_ogp | None | Pour mettre a jour OGP |