-
Create a new GitHub personal access token with the following scopes:
read:packages -
Set env variable
SANCTUARYTEAM_AUTH_TOKENto the token value. You should runcp .env.example .envand modify this new file to store your token. -
Run
yarn install
yarn devMake sure Docker is installed.
If you are on Windows, you should be running the files from within a WSL container. Otherwise, you will not be able to hot reload and file access will be slow.
- Start Ubuntu (or the distro you installed with WSL/Docker)
- Checkout the repositories or copy it from your local filesystem
cp -r /mnt/c/Users/username/Documents/sanctuaryteam/ ~/(your file path may vary) - Enter the folder in the command line
cd ~/sanctuaryteam/web-app - Run the following command to start development:
docker compose up- To modify the files on your Windows machine install Remote WSL for VS Code
- In your WSL instance, run
code .inside of theweb-appfolder. - Start VS Code and select the Remote Explorer from the left-hand side, and choose the web-app.
docker-compose run web-app yarn add my-package --devyarn run format- Add localizations in English using the string templating pattern that is throughout the project
- Run
yarn lingui:extractto extract the English words to hashes. - Update any localization
.jsonfiles found insrc/modules/common/i18n, this folder is auto-generated. - Once you have updated the
.jsonfiles runyarn lingui:compile. - Check in the changes in a PR