Markdown

HTML tag
<img src="https://boj-badge.herokuapp.com/?id={handle}" alt="BOJ badge"/>
https://boj-badge.herokuapp.com/?id={id}&query={query}&color={color}&label={label}
id
정보를 조회하려는 백준 온라인 저지의 유저 아이디입니다. 사용법은 /?id=joonas 와 같습니다.
query
query에 따라 조회하는 정보와 결과는 아래와 같습니다. 생략한다면, solved를 조회합니다.
rank의 경우, /?id={id}&query=rank 와 같이 사용하시면 됩니다.
color
사용 가능한 색상은 아래 표를 참고하시길 바랍니다.
Hex code로 직접 색상을 지정할 수 있습니다. 단, # 을 %23 으로 적어야합니다. (color=#E68364 => color=%23E68364)
| 색상값 | 결과 |
|---|---|
| aqua | |
| black | |
| blue | |
| brightred | |
| fuchsia | |
| gray | |
| green | |
| lightgrey | |
| navy | |
| orange | |
| purple | |
| red | |
| silver | |
| teal | |
| white | |
| yellow |
label
label 부분의 텍스트를 직접 지정할 수 있습니다. 생략한다면 query에 맞게 채워집니다.
| 예시 | 결과 | |
|---|---|---|
label |
 |
- Python 3.8
- PostgreSQL or SQLite
환경 변수 설정
$ export DATABASE_URL=sqlite:///db.sqlite
설치 및 실행
$ pip install -r requirements.txt
$ gunicorn app:app
Heroku를 통해서 배포합니다.
이 레포지토리를 fork 한 후, Heroku 계정을 사용하여 직접 배포할 수 있습니다.
The source code for the site is licensed under the MIT license, which you can find in the MIT-LICENSE.txt file.
All graphical assets are licensed under the Creative Commons Attribution 3.0 Unported License.