Skip to content
/ server Public

๐Ÿš (์ฃผ) ํŒŒ๋ธ”๋กœํ•ญ๊ณต ์‚ฌ์šฉ์ž ์ธ์ฆ ๊ธฐ๋ฐ˜ ๋„์–ด๋ฝ ์‹œ์Šคํ…œ ๐Ÿ”

Notifications You must be signed in to change notification settings

asapD/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

96 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

asapD Server

This project is carried out with an offer from Pablo Airlines. It consists of three parts: server, Android, and Arduino under the theme of building a user authentication-based door lock system.

Progress period : 2022.09.04 ~ 2022.09.28

Hosted by: kusitsm

๐Ÿ˜Ž Getting Started

  1. Install server application.
  git clone https://github.com/asapD/server.git
  1. Execute docker-compose to run db server.
  docker-compose up
  1. Run spring boot project in IntelliJ.

๐Ÿงพ What we use

  • Server



  • Secure



  • Database



  • Environment





  • etc


๐Ÿ“ Architecture of system

image

image

โฌ‡๏ธ Flow Scenario

image

  1. ํšŒ์›๊ฐ€์ž…ํ•œ ์‚ฌ์šฉ์ž๊ฐ€ asapD ์–ดํ”Œ์„ ํ†ตํ•ด ์ƒํ’ˆ์„ ์ฃผ๋ฌธํ•œ๋‹ค.
  2. ์„œ๋ฒ„์—์„œ ์ฃผ๋ฌธID์™€ ์‚ฌ์šฉ์žID, prefix ๊ฐ’์„ ํ†ตํ•ด serialNum์„ ์ƒ์„ฑํ•˜๊ณ  ์ด๋ฅผ Redis์— ์ €์žฅํ•œ๋‹ค. ๊ทธ ํ›„ ์‚ฌ์šฉ์ž์—๊ฒŒ serialNum์„ QR์ฝ”๋“œ๋กœ ๋ณด์—ฌ์ค€๋‹ค.
  3. ์‚ฌ์šฉ์ž๊ฐ€ ๋„์–ด๋ฝ ๊ธฐ๊ธฐ ( ์•„๋‘์ด๋…ธ )์™€ ๋ธ”๋ฃจํˆฌ์Šค ์—ฐ๊ฒฐ์„ ํ•œ๋‹ค.
  4. ๋ธ”๋ฃจํˆฌ์Šค ์—ฐ๊ฒฐ ์„ฑ๊ณต ํ›„์— ์‚ฌ์šฉ์ž๊ฐ€ ๋„์–ด๋ฝ ๊ธฐ๊ธฐ์˜ QR ์ฝ”๋“œ ๋ฆฌ๋”๊ธฐ์— QR ์ฝ”๋“œ๋ฅผ ๋ณด์—ฌ์ค€๋‹ค.
  5. ๋„์–ด๋ฝ ๊ธฐ๊ธฐ์—์„œ QR ์ฝ”๋“œ ๊ฐ’์„ ์ฝ์€ ๋’ค, serialNum์„ ์ถ”์ถœํ•˜์—ฌ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ธ”๋ฃจํˆฌ์Šค ํ†ต์‹ ์œผ๋กœ ๊ฐ’์„ ์ „๋‹ฌํ•œ๋‹ค.
  6. ์•ˆ๋“œ๋กœ์ด๋“œ์—์„œ ์ด ๊ฐ’์„ ๋ฐ”๋กœ ์„œ๋ฒ„์— ๋ณด๋‚ด์–ด, ๊ฒ€์ฆ ๊ณผ์ •์„ ๊ฑฐ์นœ๋‹ค.
  7. ๊ฒ€์ฆ ๊ฒฐ๊ณผ๋กœ 200 status์ผ ๊ฒฝ์šฐ ์•ˆ๋“œ๋กœ์ด๋“œ๋Š” ๋„์–ด๋ฝ ๊ธฐ๊ธฐ์— ๋ธ”๋ฃจํˆฌ์Šค ํ†ต์‹ ์€๋กœ open ํ‚ค์›Œ๋“œ๋ฅผ ์ „์†กํ•˜๊ณ , 400 status์ผ ๊ฒฝ์šฐ close ํ‚ค์›Œ๋“œ๋ฅผ ์ „์†กํ•œ๋‹ค.
  8. ๋„์–ด๋ฝ ๊ธฐ๊ธฐ๋Š” ์ „๋‹ฌ๋ฐ›์€ ํ‚ค์›Œ๋“œ์— ๋”ฐ๋ผ ์„œ๋ณด ๋ชจํ„ฐ๋ฅผ ์›€์ง์—ฌ ๋ฌธ์„ ์—ด๊ฑฐ๋‚˜ ์—ด์ง€ ์•Š๋Š”๋‹ค.

About

๐Ÿš (์ฃผ) ํŒŒ๋ธ”๋กœํ•ญ๊ณต ์‚ฌ์šฉ์ž ์ธ์ฆ ๊ธฐ๋ฐ˜ ๋„์–ด๋ฝ ์‹œ์Šคํ…œ ๐Ÿ”

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published