/self-check-automation

๐Ÿฉบ ๊ฒฝ๊ธฐ๋„๊ต์œก์ฒญ์˜ ํ•™์ƒ ๊ฑด๊ฐ•์ƒํƒœ ์ž๊ฐ€์ง„๋‹จ์„ ์œ„ํ•œ, ๋น ๋ฅด๊ณ  ๊ฐ€๋ฒผ์šด ์ž๋™ํ™” ์Šคํฌ๋ฆฝํŠธ์ž…๋‹ˆ๋‹ค. / Blazing fast COVID-19 Self-diagnosis check for Gyeonggi-do schools

Primary LanguageTypeScript

Self Check Automation

๐Ÿšจ ๊ณต์ง€: ์ด ์Šคํฌ๋ฆฝํŠธ๋Š” ๊ฑด๊ฐ•์ƒ์˜ ๋ฌธ์ œ๊ฐ€ ์—†์„ ๊ฒฝ์šฐ, ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์—ด๊ณ  ๋ณต์žกํ•œ ์ธ์ฆ ์ ˆ์ฐจ๋ฅผ ๊ฑฐ์น  ํ•„์š” ์—†์ด ํ•˜๋‚˜์˜ ๋ช…๋ น์–ด๋กœ ๋น ๋ฅด๊ฒŒ ์ž๊ฐ€์ง„๋‹จ์„ ๋งˆ์น˜๊ธฐ ์œ„ํ•ด์„œ ๊ฐœ๋ฐœ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์‹คํ–‰ ์ „ ๋ฐ˜๋“œ์‹œ ๊ฐœ์ธ ๊ฑด๊ฐ•์ƒํƒœ๋ฅผ ํ™•์ธํ•ด์ฃผ์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.

๊ฒฝ๊ธฐ๋„๊ต์œก์ฒญ์˜ ํ•™์ƒ ๊ฑด๊ฐ•์ƒํƒœ ์ž๊ฐ€์ง„๋‹จ์„ ์œ„ํ•œ, ๋น ๋ฅด๊ณ  ๊ฐ€๋ฒผ์šด ์ž๋™ํ™” ์Šคํฌ๋ฆฝํŠธ์ž…๋‹ˆ๋‹ค.

Blazing fast COVID-19 Self-diagnosis check for Gyeonggi-do schools

Typed-with-TypeScript

result

๐Ÿ” Why

meme-1

  • ๋งจ๋‚  ๋“ค์–ด๊ฐ€์„œ ์ฒดํฌํ•˜๊ธฐ ๊ท€์ฐฎ๊ณ  ์‹ค์ˆ˜๋กœ ๋นผ๋จน์—ˆ๋‹ค๊ฐ€ ๊ฐˆ๊ตผ๋‹นํ•˜๋ฉด ์†์ƒํ•ฉ๋‹ˆ๋‹ค.

  • ์ด๋ฏธ ์กด์žฌํ•˜๋Š” ๊ฐ™์€ ๋ชฉ์ ์˜ ๋‹ค๋ฅธ ํ”„๋กœ๊ทธ๋žจ๋“ค์€ ์…€๋ ˆ๋‹ˆ์›€ ๋“ฑ์„ ์ด์šฉํ•ด ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์ œ์–ดํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๊ตฌํ˜„๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๋ถˆํ•„์š”ํ•œ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๋งŽ์ด ์‚ฌ์šฉํ•˜๊ณ , ์†๋„๋„ ๋Š๋ ค์„œ ํ”ผ๊ณคํ•ฉ๋‹ˆ๋‹ค.

  • ํ•™๊ต ์ฝ”๋“œ๋Š” ๋˜ ๋ญ˜๊นŒ ์ฒ˜์ฑ ใ…‘๋ฉ”...

๐Ÿš€ Usage

1. Clone repo

# ๊นƒํ—ˆ๋ธŒ์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ํด๋ก ํ•ฉ๋‹ˆ๋‹ค.
git clone https://github.com/junhoyeo/self-check-automation
cd self-check-automation

2. Update credentials

{
  "schoolCode": "J100000855",
  "schoolName": "ํ•œ๊ตญ๋””์ง€ํ„ธ๋ฏธ๋””์–ด๊ณ ๋“ฑํ•™๊ต",
  "studentName": "์—ฌ์ค€ํ˜ธ",
  "studentBirth": "030704"
}

credentials.json์— ๊ฐœ์ธ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

ํ•„๋“œ๋ช… ์„ค๋ช… ํƒ€์ž… ํ•„์ˆ˜ ์—ฌ๋ถ€
schoolCode ํ•™๊ต ์ฝ”๋“œ string โŒ
schoolName ํ•™๊ต ์ด๋ฆ„ string ํ•„์ˆ˜
studentName ์‚ฌ์šฉ์ž ์ด๋ฆ„ string ํ•„์ˆ˜
studentBirth ์‚ฌ์šฉ์ž ์ƒ๋…„์›”์ผ(yyMMdd๋กœ 6์ž๋ฆฌ ์ˆซ์ž) string ํ•„์ˆ˜

์ž ๊น, ํ•™๊ต ์ฝ”๋“œ๋ฅผ ๋ชจ๋ฅด์…”๋„ ๊ดœ์ฐฎ์•„์š”!

ํ•™๊ต ์ฝ”๋“œ๋ž€ ๊ต์œกํ–‰์ •์ •๋ณด์‹œ์Šคํ…œ(๋‚˜์ด์Šค)์—์„œ ๊ฐ ํ•™๊ต๋ฅผ ๊ตฌ๋ถ„ํ•˜๊ธฐ ์œ„ํ•ด ๋‚ด๋ถ€์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.
๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ์‚ฌ์šฉ์ž ์ž…์žฅ์—์„œ๋Š” ์กด์žฌ์กฐ์ฐจ ๋ชจ๋ฅด๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๊ณ , ์‹ค์ œ๋กœ๋„ ๊ตณ์ด ์•Œ๊ณ  ์žˆ์„ ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

result

ํ•™๊ต ์ด๋ฆ„๋งŒ ์ •ํ™•ํžˆ ์ž…๋ ฅํ•˜์…จ๋‹ค๋ฉด, ์ž๋™์œผ๋กœ ํ•™๊ต ์ฝ”๋“œ๋ฅผ ์ฐพ์•„ ์ฒดํฌ์— ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

3. Build & Run

# credentials.json์„ ํŽธ์ง‘ํ•œ ๋’ค, ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ปดํŒŒ์ผํ•ฉ๋‹ˆ๋‹ค.
# ์ˆ˜์ •์ด ๋ฐœ์ƒํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด, ๋‹ค์‹œ ๋นŒ๋“œํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.
yarn
yarn build

# ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
yarn start

๐Ÿ‘ฝ Furthermore

Todo

  • ํ•™๊ต ์ฝ”๋“œ ๊ฒ€์ƒ‰ ์‹œ, ์ •ํ™•ํ•œ ํ•™๊ต๋ช…์ด ์•„๋‹Œ ๊ฒ€์ƒ‰์–ด๋ฅผ ์‚ฌ์šฉํ–ˆ์„ ๊ฒฝ์šฐ๋ฅผ ์ƒ๊ฐํ•ด ์ฝ”๋“œ์™€ ํ•จ๊ป˜ ์ œ๊ณต๋˜๋Š” ํ•™๊ต ์ด๋ฆ„์„ ๊ฐ€์ ธ์˜ค๋„๋ก ํ•˜๊ธฐ
  • ๊ฒ€์ƒ‰ํ•œ ํ•™๊ต ์ฝ”๋“œ๋ฅผ ๋‹ค์Œ ์‹คํ–‰ ์‹œ์— ๋ฐ”๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก credentials.json์— ์ €์žฅํ•˜๊ธฐ
  • ๊ฒฝ๊ธฐ๋„ ์™ธ ๋‹ค๋ฅธ ๊ต์œก์ฒญ๋„ ์ง€์›