Skip to main content

Step6. Frontend Sample

Next, let's start the frontend sample locally

TODO Sample

In corporate systems and business services, there are various demands for front-ends operated by users depending on the application. Therefore, Hexabase allows front-end development from scratch.

Frontend apps can be developed using frontend development frameworks such as React and Vue.js. In addition, sample code is provided as OSS (MIT license) for efficient development.

Demo Video

Things to prepare in advance

  • node.js

  • npm

  • Git

  • Add the TODO sample application according to Step 4

Execution steps

Preparation of TODO samples

1.Get sample code from Github

Or

git clone [email protected]:b-eee/hexa-vue-example1.git

2.Get the packages you need to run

npm install

Modifying configuration files

Set your .env files as follow:

VUE_APP_HEXACLOUD_URL="https://api.hexabase.com"
VUE_APP_HEXACLOUD_PATH="/api/v0"
VUE_APP_APPLICATION_ID="APP-todo1"
VUE_APP_DATASTORE_ID="Db-todo1"
NameMeaning
VUE_APP_HEXACLOUD_URLhexabase API URL
VUE_APP_HEXACLOUD_PATHFixed path after the hexabase API URL
VUE_APP_APPLICATION_IDhexabase application ID
VUE_APP_DATASTORE_IDhexabase database ID

Application execution

npm run serve

Login

  1. In your browser, go to Network: http://192.168.1.8:8080/
  2. Log in using the account you registered when you signed up.

You have successfully launched the ToDo sample locally.

Precautions for use

  • When using the TODO sample frontend application, select the workspace containing the TODO sample on the admin panel.
  • Currently, the TODO sample frontend app does not have the ability to select a workspace. Therefore, when using an account with multiple workspaces, the task list will not be displayed unless the workspace containing the TODO sample is selected on the admin panel.

Once you understand the basic operations of Hexabase, you can start developing systems using Hexabase.

Please make use of Hexabase.