- Install recommended VSCode extensions (source)
- Open the repo in VSCode
- You should get a notification to install the recommended extensions
- If not, go to the VSCode extension tab in the editor, and type
@recommended
in the searchbox to see the list. - See here for why the extensions are recommended
The following steps will start a FE server that connects to dev
API. (See useful tips section to connect to a different API)
- Install
nvm
- Example:
brew install nvm
- Example:
- Check
.nvmrc
to see which version of node to download.- Example:
nvm install 20.10.0 && nvm use 20.10.0
- Example:
- Install npm packages and playwright browsers
- Example:
npm i && npx playwright install
- Example:
- Copy configs file
frontend/src/configs/local.js
tofrontend/src/configs/configs.js
- Example:
cp ./src/configs/local.js ./src/configs/configs.js
- Example:
- Start FE server
- Example:
npm run dev
- Example:
- Navigate to
http://localhost:3000/
See DEV_ENV.md for local dev quick start using Docker containers
- Test FE app production build locally:
npm run build && npm run serve
- Connect FE app to a different deployed env API
- Go to
frontend/src/configs/configs.js
, uncomment the env API you want to use
- Go to
The environment variables for the web application. The variables are stored in /frontend/configs/*. E.g., frontend/configs/local.js
For local development, please copy local.js
to a new file named configs.js
in the same directory (frontend/src/configs/configs.js
)
WARNING: Do not store sensitive data in the environment variables.
Name | Description |
---|---|
AUTH0_DOMAIN | The hosted Auth0 domain used for Authentication |
AUTH0_CLIENT_ID | The client id of the Auth0 application for this site |
AUDIENCE | The domain of the corpora api |
API_URL | The URL to the corpora api |
Steps are described in On Call Check List
See tests documentation for details