Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

JenswBE/go-commerce-admin

Repository files navigation

⚠️ This frontend is no longer maintained. Instead the build-in admin client of GoCommerce should be used directly.

GitHub Docker Pulls Quality Gate Status

GoCommerce - Admin

Admin site for go-commerce

Links

Configuration

  • AUTH_CLIENT_ID: Client ID for OIDC and password login
  • AUTH_STATE: Set to unique and random value. Used to prevent CSRF attacks.
  • AUTH_URL_OIDC_CONFIG: URL for OIDC configuration (ending on .well-known/openid-configuration)
  • AUTH_URL_LOGOUT_REDIRECT: URL to redirect to after OIDC Logout. URL must be absolute.
  • AUTH_PASSWORD_URL_LOGIN: AppleWebkit doesn't like the SSO. As a workaround, I implemented the OIDC "password" grant as well. URL to the token endpoint.
  • AUTH_PASSWORD_URL_REFRESH: URL to the refresh endpoint for "password" grant.
  • AUTH_PASSWORD_LOGOUT: URL to the logout endpoint for "password" grant.
  • BACKEND_URL_INTERNAL: URL for the backend when rendering with SSR. Usually uses name of docker container.
  • BACKEND_URL_EXTERNAL: URL for the backend for the browser. This is the domain name the backend is publicly reachable on.
  • PRODUCT_URL_TEMPLATE: URL template pointing to the public page of a product. Product is available as variable p. E.g. /products/${p.id}.

Local development

# install dependencies
$ yarn install

# serve with hot reload at 127.0.0.1:3000
$ yarn dev

Thanks to