Skip to main content

TODO Sample

This sample app is a simple TODO admin tool. You can display the work progress as a status.

TODO Sample

Run the demo

※ Registered content may be deleted without notice.

Operate on the admin panel

TODO sample_admin panel

Source code

We provide TODO samples as open source software.

Advance preparation

  • node.js
  • npm

Local execution

Preparing the Vue sample

Get sample code from Github

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

Obtaining the packages required for execution

npm install

Run the application

npm run serve

Login

  • Access Network: http://192.168.1.8:8080/ in your browser
  • Connect to the demo environment >> Log in with the demo ID and password
  • Connect to your workspace >> Log in with your ID and password

Setting file

Please modify the settings required for the operation of the application according to the backend to be used. The settings file is as follows:

  • .env
  • src/constants/datastore.js

.env

ValueMeaningDescription
VUE_APP_HEXACLOUD_URLhexabase API URLhexabase API URL: "https://xxx-api.hexabase.com" for "https://xxx.hexabase.com" in the backend execution environment
VUE_APP_HEXACLOUD_PATHFixed path after the hexabase API URL
VUE_APP_APPLICATION_IDhexabase Application IDSet this if your workspace has multiple applications. Specify the display_id for the application_id
VUE_APP_DATASTORE_IDhexabase Datastore IDSet it if your application has multiple databases. Specify the display_id of the datastore_id

src/constants/datastore.js

ValueMeaningDescription
DATASTORE_TITLEDatabase title displayed in sample applicationConfigure it for your frontend application
FIELDSDatabase display item IDCan be changed depending on Hexabase settings
OPTIONS.CATEGORYOption value and IDCan be changed depending on Hexabase settings
STATUS_ACTIONSStatus and status action IDs and namesCan be changed depending on Hexabase settings

Usage notes

If you want to use the TODO sample front-end app, please select the workspace containing the TODO sample on the admin panel.

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.

When developing, do not use process.env. This may be an issue when deploying your application. If you want to switch the execution environment of the frontend application, please use something other than process.env. For example, in Nuxt.js you can use nuxt.config.js.

  1. Confirm basic settings
  2. Change basic settings
  3. Add category choices
  4. Change the design
  5. Try adding a status
  6. Try adding a field
  7. Try adding a search function