Giter Club home page Giter Club logo

starbucks-siren-order-services's Introduction

Siren Order Services(System)

스타벅스의 사이렌 오더 서비스(기능)들을 보고 클론 코딩을 하는 프로젝트입니다 ☕️

ToDo

User Account /api/member

  • DataBase 설정
    • 구조체를 이용한 테이블 생성함
  • POST /register: 기본적인 회원가입
    • UUID를 통한 회원 식별을 할 수 있도록 함.
    • Password 암호화를 함.
    • 회원의 생일을 입력 받을 수 있도록 함.
    • 가입되어 있는 메일에 대한 중복 오류 처리
    • 가입되어 있는 연락처에 대한 중복 오류 처리
    • 사용되고 있는 닉네임에 대한 중복 오류 처리
  • POST /login: 기본적인 로그인
    • 회원 정보 맞을 시
      • JWT Token 발행
    • 회원 정보가 안 맞을 시
      • 오류 출력
    • 회원정보 GORM를 통해서 불러오기
  • POST /logout: 로그아웃
    • 생성 되어 있는 쿠키 무력화
  • /edit: 회원의 기본적인 정보를 수정할 수 있는 기능
    • 이메일 변경
    • 비밀번호 변경
    • 닉네임 변경
    • 전화번호 변경
  • /delete: 회원 탈퇴

Order /order/{id}

  • 푸드마다 고유ID를 통한 푸드 및 음료를 식별할 수 있도록 개발
  • 주문 설정
    • 사이즈

Payment /payment

  • 멤버쉽 카드 생성
    • 생성 유저 식별 및 기록
    • 멤버쉽 카드의 상태
      • 분실
        • 삭제 or 보존
      • 충전
        • 충전 방식 결정
      • 잔액 확인

Store /store

  • 주문 시 결정할 수 있도록 함.
    • 드라이브 스루 사용 가능 매장 확인
    • 매장 운영 시간 확인
      • 매장이 열지 않았거나 닫은 경우 오류 출력

Push /push

  • 주문 시
    • 주문 확인 후 주문 몇 번째인지 확인 할 수 있도록 개발
      • Ex) 1번째 메뉴로 준비중입니다. (A-14)
    • 음료 및 푸드 픽업 대기 중
      • Ex) 메뉴가 모두 준비되었습니다. (A-14)
        픽업대에서 메뉴를 픽업해주세요!
        매장 방문시 마스크를 꼭 착용해주세요.
      • 준비 되었지만 5분 안에 픽업이 안 된 경우 2분마다 알람 재송신
        • Ex) 픽업대에서 기다리고 있어요.
  • 광고 시
    • 상세 내용 추후 추가 예정

Functions

POST /api/member/register

Request

{
    "name": "HyunSang Park",
    "nickname": "이것은 닉네임",
    "birthday": "2004-06-25",
    "email": "[email protected]",
    "password": "hello!@#"
}

Response

{
    "uuid": "4eceee7e-2c74-490c-b094-9f5c959a654a",
    "name": "HyunSang Park",
    "nickname": "이것은 닉네임",
    "birthday": "2004-06-25",
    "email": "[email protected]",
    "password": "$2a$14$FtVJ.pqkp7BukLqnQRWehudF1l5CjUgVVfRIK8GQH9ust61Jpe0sO",
    "created_at": "2021-12-26T16:13:08.154225+09:00",
    "updated_at": "2021-12-26T16:13:08.169+09:00"
}

중복되는 메일이 있는 경우:

{
    "message": "중복되는 메일이 있습니다."
}

중복되는 닉네임이 있는 경우:

{
    "message": "중복되는 닉네임이 있습니다, 다시 확인 해 주세요."
}

중복되는 전화번호가 있는 경우:

{
    "message": "중복되는 전화번호가 있습니다, 다시 확인 해 주세요."
}

POST /api/member/login

Reqeust

{
    "email": "[email protected]",
    "password": "hello!@#"
}

Response

{
    "message": "success"
}
Name Value Domain Path Expires
jwt eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NDA1OTIyNzIsImlzcyI6IjA1M2E0OTNmLWVhYjItNDExNC04ZmJkLWQwOTVkYWQxYmIyZCJ9.wdwZIbIGzlutmDpog1FYV0RX7aH-y2QyQDaGkJXopBA localhost / Sun, 26 Dec 2021 09:04:32 GMT

메일 혹은 비밀번호가 틀린 경우:

{
    "message": "메일 혹은 비밀번호가 올바르지 않습니다. 다시 확인 해 주세요."
}

참고한 문서 및 글

starbucks-siren-order-services's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

qqq-tech arcsprk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.