Table of Contents
App => Click Here to view app.
Discover some packages of this project:
- chi
- testing
- fmt
- log
- os
- bufio
- log
- path
- strings
- strconv
- unicode
- React.js
- axios
- express
- Material-UI
- React Testing Library
- moment
- eslint
- filefy
- classnames
- mongoose
- cors
- classnames
- emotion/react etc.
Move main.go to $GOPATH/src/apsis/server/main.go and building should work just fine
For debug or run operation:
As a User
I want to be able to create a new counter
So that steps can be accumulated for a team of one or multiple employees
POST https://apsis-code.herokuapp.com/team
As a User
I want to be able to increment the value of a stored counter
So that I can get steps counted towards my team's score
GET https://apsis-code.herokuapp.com/teams/{id}/employee
e.g. https://apsis-code.herokuapp.com/teams/0/employee
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Team id |
As a User
I want to get the current total steps taken by a team
So that I can see how much that team have walked in total
GET https://apsis-code.herokuapp.com/team/{id}
e.g. https://apsis-code.herokuapp.com/team/0
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Team id |
As a User
I want to list all teams and see their step counts
So that I can compare my team with the others
GET https://apsis-code.herokuapp.com/teams
As a User
I want to list all counters in a team
So that I can see how much each team member have walked
GET https://apsis-code.herokuapp.com/team/{teamId}/employees
e.g. https://apsis-code.herokuapp.com/team/0/employees
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Team id |
As a User
I want to be able to add/delete teams So that I can manage teams
POST https://apsis-code.herokuapp.com/team
DELETE https://apsis-code.herokuapp.com/team/{id}
e.g. https://apsis-code.herokuapp.com/team/0
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Team id |
As a User
I want to be able to add/delete counters So that I can manage team member's counters
POST https://apsis-code.herokuapp.com/teams/{id}/employees
e.g. https://apsis-code.herokuapp.com/teams/0/employees
DELETE https://apsis-code.herokuapp.com/teams/{id}/employees/{eID}
e.g. https://apsis-code.herokuapp.com/teams/0/employees/0
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Team id |
eID |
string |
Required. Employee id |