Import the database mysql -u username -p < database.sql
Install all NPM dependencies npm install
Start it and then stop it sudo node index.js
Configure mysql and web-port config.json
Run tests and make sure everything checks out npm test
Native docs https://hs.ygstr.com/docs
Wiki docs https://github.com/te4umea2019/Tidsapp-HS/wiki
Important: When storing the date, store it in ms since epoch, Date.now()
name
type
special
description
id
int
AUTO_INCREMENT, PRI
ID of the user
username
text
none
User choosen name
name
text
none
Full name of the user
avatar
text
none
Link of the username
email
text
none
Email of the user
access_token
text
none
Access token given by slack, used to update user information
admin
int
none
Boolean(0-1) if the user is an admin or not.
created
BigInt
none
The date the user was created
name
type
special
description
id
int
AUTO_INCREMENT, PRI
ID of the check
user
id
none
ID of the user
check_in
int
none
Boolean(0-1) if the it was a check in (otherwise check out)
project
text
NULL
Name of the project
date
BigInt
none
Date of the
type
text
none
Check in type (web, card, TOP SECRET)
name
type
special
description
id
int
AUTO_INCREMENT, PRI
ID of the token
user
id
none
ID of the user
token
text
none
Token
name
type
special
description
id
int
AUTO_INCREMENT, PRI
ID of the project
name
text
none
Name of the project
Joints (table name subject to change ??)
List of who has joined what team and how much work they have done (in hours / minutes)
name
type
special
description
id
int
AUTO_INCREMENT, PRI
ID of the joint
project
text
none
Name of the project
user
int
none
ID of the user
work
BigInt
none
Work done in ms (1 hour of work = 3600000)
date
BigInt
none
Date of joining the project