Manage Applications
HarperDB Applications are enabled by default and can be configured further through the HarperDB Studio. It is recommended to read through the Applications documentation first to gain a strong understanding of HarperDB Applications behavior.
All Applications configuration and development is handled through the applications page of the HarperDB Studio, accessed with the following instructions:
Navigate to the HarperDB Studio Organizations page.
Click the appropriate organization that the instance belongs to.
Select your desired instance.
Click applications in the instance control bar.
Note, the applications page will only be available to super users.
Manage Applications
The Applications editor is not required for development and deployment, though it is a useful tool to maintain and manage your HarperDB Applications. The editor provides the ability to create new applications or import/deploy remote application packages.
The left bar is the applications file navigator, allowing you to select files to edit and add/remove files and folders. By default, this view is empty because there are no existing applications. To get started, either create a new application or import/deploy a remote application.
The right side of the screen is the file editor. Here you can make edit individual files of your application directly in the HarperDB Studio.
Things to Keep in Mind
To learn more about developing HarperDB Applications, make sure to read through the Applications documentation.
When working with Applications in the HarperDB Studio, by default the editor will restart the HarperDB Applications server every time a file is saved. Note, this behavior can be turned off by toggling the auto
toggle at the top right of the applications page. If you are constantly editing your application, it may result in errors causing the application not to run. These errors will not be visible on the application page, however they will be available in the HarperDB logs, which can be found on the status page.
The Applications editor stores unsaved changes in cache. This means that occasionally your editor will show a discrepancy from the code that is stored and running on your HarperDB instance. You can identify if the code in your Studio differs if the "save" and "revert" buttons are active. To revert the cached version in your editor to the version of the file stored on your HarperDB instance click the "revert" button.
Accessing Your Application Endpoints
Below is a breakdown of how to access each type of endpoint. In these examples, we will use a locally hosted instance with securePort
set to 9926
: https://localhost:9926
.
Creating a New Application
From the application page, click the "+ app" button at the top right.
Click "+ Create A New Application Using The Default Template".
Enter a name for your project, note project names must contain only alphanumeric characters, dashes and underscores.
Click OK.
Your project will be available in the applications file navigator on the left. Click a file to select a file to edit.
Editing an Application
From the applications page, click the file you would like to edit from the file navigator on the left.
Edit the file with any changes you'd like.
Click "save" at the top right. Note, as mentioned above, when you save a file, the HarperDB Applications server will be restarted immediately.
Last updated