⚠️ This frontend is no longer maintained. Instead the build-in admin client of GoCommerce should be used directly.
Admin site for go-commerce
- GitHub: https://github.com/JenswBE/go-commerce-admin
- DockerHub: https://hub.docker.com/r/jenswbe/go-commerce-admin
- Backend: https://github.com/JenswBE/go-commerce
AUTH_CLIENT_ID
: Client ID for OIDC and password loginAUTH_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 variablep
. E.g./products/${p.id}
.
# install dependencies
$ yarn install
# serve with hot reload at 127.0.0.1:3000
$ yarn dev
- Custom logic for upload button: https://codepen.io/blachocolat/pen/BgMKRQ