To reduce the round trip for querying, the object will use lazy contruction and reused untill it is informed to be updated (trigger from endpoint).
- Launch your terminal
- Make sure Node js 12.++ is installed on your machine, you can perform checking by typing:
node -v
- If you have it installed, your should see something like:
node -v
v12.18.3
- If you faced any problem, you should installed Node version 12.++ and add it to your system PATH.
- You need to ensure all node dependencies are installed before running the program
- Do below and you should see progress bar running in terminal, wait till the installation finishes:
npm i
- Then, refer to
.env.example
file to change PORT number to the PORT that you desired - After that, do:
npm run dev
- To know more about how to use this API and sample data to work with, visit this file
- Tree
- TreeID
- Name
- Description
- User (The user of this tree, a system or a module, this can be use for access control)
- Access Token
- Nodes
- NodeID
- TreeID (To recognise which tree does it belong to)
- QuestionID
- Answers
- Text
- NodeID (Next node)
- Questions
- QuestionID
- QuestionText