Skip to content
On this page

Cloud Staging API

The easiest way to test that your trivial-ui install is working correctly is to use the hosted staging API server.

Using the Staging API Server

To run trivial-ui locally against the cloud staging API:

  1. Register for an account on the cloud staging site. This is the user and password you'll use locally. Password reset and invitations emails work on staging, making it preferable to use the staging UI for account management.

  2. In your .env file in trivial-ui, add or uncomment the following:


Once the env variable is added, restart your local trivial-ui. For more about the env file, please refer to the trivial-ui repository.

  1. At this stage, the UI should present the login screen, but all API calls will fail (i.e., you can't login). If you look in the browser console, you'll see CORS errors. To work around this, start a special Chrome instance with security and personalization features disabled.

On Mac:

/Applications/Google\\ Chrome --disable-web-security --user-data-dir="/var/tmp/Chrome"
  1. You should now be able to login at the address logged by Vite, using your user/password from Step 1, typically http://localhost:5173/

TrivialJS source code released under the MIT License. All rights to Trivial™ and TrivialJS™ trademarks reserved.