Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lblod/frontend-subsidiepunt
https://github.com/lblod/frontend-subsidiepunt
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lblod/frontend-subsidiepunt
- Owner: lblod
- License: mit
- Created: 2024-01-29T08:46:20.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-11-28T13:18:37.000Z (about 2 months ago)
- Last Synced: 2024-11-28T13:26:41.303Z (about 2 months ago)
- Language: JavaScript
- Size: 1.65 MB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# frontend-subsidiepunt
Frontend of the subsidiepunt application
## Environment variables
The [ember-proxy-service](https://github.com/mu-semtech/ember-proxy-service#configure-environment-variables-in-the-frontends-container) docker image (which we use to host the frontend) supports configuring environment variables. The following options are available.
### General
| Name | Description |
| ------------------------------------------ | --------------------------------------------------------------------------------------- |
| `EMBER_GLOBAL_SYSTEM_NOTIFICATION` | This can be used to display a message at the top of the application. HTML is supported. |### ACM/IDM
| Name | Description |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `EMBER_ACMIDM_CLIENT_ID` | The unique client id for a specific environment |
| `EMBER_ACMIDM_AUTH_URL` | The URL where users will be redirected to when they want to log in |
| `EMBER_ACMIDM_AUTH_REDIRECT_URL` | The callback URL that ACM/IDM will use after the user logs in successfully |
| `EMBER_ACMIDM_LOGOUT_URL` | The URL where users will be redirected to when they want to log out |
| `EMBER_ACMIDM_SWITCH_REDIRECT_URL` | The URL that will be used when "switching users" is enabled in ACM/IDM. After logout, users can select one of their other accounts to simplify the flow. |> When ACM/IDM is not configured, the frontend will default to the "mock login" setup instead.
### Feature flags
Feature flags are new / experimental features that can be enabled by setting them to "true".
> There are no feature flags available right now.
### Plausible
| Name | Description |
| ---------------------------- | -------------------------------------------------------------------------------- |
| `EMBER_ANALYTICS_API_HOST` | The URL of the Plausible host to which all events will be sent |
| `EMBER_ANALYTICS_APP_DOMAIN` | The app domain which will be used to group the events in the Plausible dashboard |> Analytics will only be enabled when both variables are configured.
### Sentry
| Name | Description |
| -------------------------- | ----------------------------------------------------------------------------------------------- |
| `EMBER_SENTRY_DSN` | Sentry DSN. Setting this activates the sentry integration. |
| `EMBER_SENTRY_ENVIRONMENT` | The name of the environment under which the errors should be reported. Defaults to 'production' |## Releasing a new version
We use [`release-it`](https://github.com/release-it/release-it) to handle our release flow
### Generating the changelog (optional)
At the moment the changelog is updated manually. To make this a bit easier you can generate a basic changelog based on the merged PRs with [`lerna-changelog`](https://github.com/lerna/lerna-changelog) by adding the correct labels and updating the PR titles.> `lerna-changelog` requires a Github [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) to work properly.
The following command can be used to generate the changelog:
`GITHUB_AUTH=your-access-token npx lerna-changelog`
### Creating a new release
Simply run `npm run release` and follow the prompts.> If you generated the changelog using lerna-changelog you can add it to the changelog file and add it to the staged changes when release-it asks if you want to commit the changes. This will ensure that the changelog change is part of the release commit.
After the new tag is created and pushed CI will take care of building the docker image.