This demo app is intended to be a starting point to try out Freym. Please have a look at the Freym documentation, too.
The Freym demo is a closed demo. To get a running demo instance of Freym please get in touch with us
- Get in touch with us and request a demo instance. We will provide all needed configuration values:
customerId: An id that identifies your demo instancejwtSecret: The secret used to sign jwts that work with your instancedeploymentsAddress: The address of the deployments apideploymentsApiToken: A token used to authenticate against the deployments api
- Clone this repo
- Replace all occurances of
https://demointsconfig.jsonwithhttps://{{customerId}}where{{customerId}}is thecustomerIdthat you received from us - Copy the
.env.templateand name the new file.env.local - Use the
customerIdas the value forNEXT_PUBLIC_CLIENT_NAME - Use the
jwtSecretas the value forJWT_SECRET - Copy the
./schema/.env.templateand name the new file./schema/.env - Use the
deploymentsAddressas the value forDEPLOYMENTS_SERVER_ADDRESS - Use the
deploymentsApiTokenas the value forDEPLOYMENTS_API_TOKEN - Run
make deployto apply the schema within./schemato Freym - Don't forget to install the dependencies:
npm install
Run npm run dev to start the frontend app locally.
Open localhost:3000 in your browser.
In order to use the graphql sandboxes you need to provide a jwt.
You can retrieve the jwt from the local-storage value named jwt, which is saved when you log in.
Add the jwt as a bearer token to the Authorization header when configuring the sandbox.
| Freym Service | Sandbox URL |
|---|---|
| Streams | https://{{customerId}}.demo.freym.io/streams/management/graphql/sandbox |
| Projections | https://{{customerId}}.demo.freym.io/projections/delivery/graphql/sandbox |
| Crud | https://{{customerId}}.demo.freym.io/crud/delivery/graphql/sandbox |
| Auth | https://{{customerId}}.demo.freym.io/auth/management/graphql/sandbox |
Please replace {{customerId}} with the customer id you received from us.
Run make deploy to apply the the schema within ./schema to Freym. To learn more about Freym schema and deployments please have a look at our docs: