To run the admin development you have to do the following:
cd admin
yarn install
VUE_APP_GRAPHQL_HTTP=http://localhost:4010/api yarn serve
yarn install
PORT=4010 yarn dev
yarn build
yarn prod
- We have to delete user tasks that don't exist anymore.
yarn test
Tasks have 3 different types:
expected value of answer when updating task is 1996-12-31
expected value of answer when updating task is yes or no
expected value of answer comma separated values choiceOne,choiseTwo
Completed by the user
Dismissed by the user, that is, the tas completion resulted in a negative response. This will not cause a linked task to be completed on a route.
Waiting for action by the user
The reward can be claimed by the user and he has sufficient balance
The reward is claimed by the user but not used
The reward is claimed and used by the user
The reward is expired, cannot be claimed or used
The json files in defs contain the configuration for the application and tenants.
Defines the initial tasks the user is asked to perform before being assigned his initial route. The tasks can have a direct link to a routeTask, so when completed this will also complete the task on that linked route.
Available routes and their definitions of tasks
Available rewards for purchase
Unlockable achievements
Errors can be return on a specific occasion, the error message will be descriptive enough to clarify the meaning of the error. Here are some of these error listed
The task requested doesn't exists in the definition files
The task requested doesn't exist on the user. This means it hassn't been assigned to the user or does not exist on a route the user has assigned to him.
The task has an invalid status on the user. This could mean the task is already completed.
The achievement doesn't exist in the definition files
The reward doesn't exist in the definition files
The route doesn't exist in the definition files