---
# System prepended metadata

title: SandBag

---

# SandBag

## Server 

- Engine : Flask

- header 
    - Token : random uuid
    - From_type : ec2 / ecs
    - Version : v1 / v2

## Client

- Engine : python
- DB : Redis
- request_header
    - Token : random uuid
    - From_type : ec2 / ecs
    - Version : v1 / v2



## ScoreBoard 

- Login
  - Admin : can see setting page 
  - Stuff : can't see setting page
  - setting Redis : 
      - if not admin -> join to redis
- Register 
    - user
    - password 
    - token
- index 
    - Json 
```
{   
    'score ': 100,
    'endpoint' : "http://xxxxxxx",
    'error' : "xxxx",
    'rank' : 1
}
```
- Chart 
    - Json
        - 
```
{   
    'people': {
        'test': 0.0, 
        'test1': 0.0, 
        'admin': 0.0
    }
}
```



# Redis 
- save user 
    - xxx_user : ["endpoint","error","translate_API"]
        - endpioont : String
        - error : String
        - translate_API : Boolean
- save score 
    - score : ["xxx":100,"xxxx":10]