A server for interaction with the TaskTracker plugin.
The detail information see in the documentation.
Do the following steps:
- Download the repository.
- Run MongoDB. It has to work on the
localhost:27017
. - Run
npm install
command from the root folder to install the necessary packages. - Run
npm start
command from the root folder. It will works on thelocalhost:3000
.
If everything is done correctly, you will see the following message:
To generate a database for the TaskTracker plugin
send the POST
query: <path_to_your_server>/api/database-generator/task-tracker
.
Note: the default <path_to_your_server>
is localhost:3000
.
The data for the database can be found here. You can change data before sending the query.
Note: the query can be sent by using Postman tool. An example with the query is:
The section describes the models and routes in the server. The full description for all models see in the documentation.
The model stores user files from the TaskTracker plugin.
Field | Type | Description |
---|---|---|
id | ObjectId | internal MongoDB id |
externalDiId | Integer | external id |
codePath | String | path for the user file in the server |
activityTrackerKey | String | external activity-tracker id |
URL | Type | Description |
---|---|---|
/api/data-item |
POST |
create a new data-item in the database |
/api/data-item/all |
GET |
get all data-items |
/api/data-item/:id |
GET |
get data-item by external id |
Note: you can see more information. See documentation.
The model stores activity-tracker files from the codetracker plugin.
Field | Type | Description |
---|---|---|
id | ObjectId | internal MongoDB id |
externalAtiId | Integer | external id |
codePath | String | path for the activity tracker file in the server |
URL | Type | Description |
---|---|---|
/api/activity-tracker-item |
POST |
create a new activity-tracker-item in the database |
/api/activity-tracker-item/all |
GET |
get all activity-tracker-items |
/api/activity-tracker-item/:id |
GET |
get activity-tracker-item by external id |
Note: you can see more information. See documentation.