Skip to content

πŸ’³ λͺ¨λ“  μΉ΄λ“œ ν˜œνƒμ„ ν•œλˆˆμ—

Notifications You must be signed in to change notification settings

EWHA-LUX/ONCE-BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ONCE-BE

Once : μΉ΄λ“œ λ‹€λ³΄μœ μžλ₯Ό μœ„ν•œ 결제 μ „ μ΅œλŒ€ 할인 μΉ΄λ“œ μΆ”μ²œ AI 챗봇 μ„œλΉ„μŠ€

πŸ› οΈ Tech Stack

  • Java 17
  • Spring Boot 3
  • MySQL 8.0.35
  • Docker
  • OpenAI
  • CODEF API

☁️ How to run

  1. Clone project

    $ git clone https://github.com/EWHA-LUX/ONCE-BE.git
  2. Set environment variable
    2-1. Add src/main/resources/firebase/once-firebase-adminsdk.json
      Download firebase-admin sdk json β–Ί Click here!

    2-2. Add src/main/resources/application.properties

    # Database
    SPRING_DATABASE_URL=(YOUR_RDS_ENDPOINT)
    SPRING_DATASOURCE_PASSWORD=(YOU_RDS_PASSWORD)
    
    # JWT
    JWT_SECRET_KEY=(YOUR_JWT_KEY)
    
    # S3
    AWS_S3_ACCESSKEY=(YOUR_S3_ACCESSKEY)
    AWS_S3_SECRETKEY=(YOUR_S3_SECRETKEY)
    AWS_S3_BUCKET=(YOUR_S3_BUCKET_NAME)
    AWS_S3_REGION=(YOUR_S3_REGION)
    
    # GPT
    OPENAI_MODEL=(YOUR_GPT_MODEL_ID)
    OPENAI_KEY=(YOUR_OPENAI_API_KEY)
    
    # AES
    AES_ENCRYPTION_KEY=(YOUR_AES_KEY)
    
    # CODEF
    CLIENT_ID=(YOUR_CODEF_CLIENT_ID)
    SECERET_KEY=(YOUR_CODEF_SECERET_KEY)
    ACCESS_TOKEN=(YOUR_CODEF_ACCESS_TOKEN)
    
    # Google Maps
    GOOGLE_CLOUD_API_KEY=(YOUR_GOOGLE_API_KEY)
  3. Run OnceApplication.java

πŸ—„οΈ Once ERD

πŸ“ API Documents

펼쳐 보기
Feature URI
πŸ‘€ νšŒμ›κ°€μž… POST /user/signup
πŸ‘€ 아이디 쀑볡 확인 GET /user/duplicate?loginId=아이디
πŸ‘€ μžλ™λ‘œκ·ΈμΈ POST /user/auto
πŸ‘€ 둜그인 POST /user/login
πŸ‘€ κΈ°κΈ° 토큰 μ €μž₯ POST /user/token
πŸ‘€ νšŒμ› νƒˆν‡΄ DELETE /user/quit
πŸ‘€ λΉ„λ°€λ²ˆν˜Έ 확인 POST /user/edit/pw
πŸ‘€ λΉ„λ°€λ²ˆν˜Έ λ³€κ²½ PATCH /user/edit/pw
πŸ‘€ 아이디 μ°ΎκΈ° POST /user/find/id
πŸ‘€ λΉ„λ°€λ²ˆν˜Έ μ°ΎκΈ° POST /user/find/pw
πŸ‘€ λ‚΄ 정보 μˆ˜μ •ν•˜κΈ° νŽ˜μ΄μ§€ GET /user/edit
πŸ‘€ νšŒμ› 정보 μˆ˜μ • PATCH /user/edit
πŸ‘€ ν”„λ‘œν•„ 이미지 μˆ˜μ •(등둝) PATCH /user/edit/profile
πŸ‘€ μΉ΄λ“œ 등둝 1단계 (μΉ΄λ“œμ‚¬λ‘œ μΉ΄λ“œ 검색) GET /user/card/search?code=0301,0302
πŸ‘€ μΉ΄λ“œ 등둝 2단계 (μΉ΄λ“œ 이름 검색) GET /user/card/searchname?name=꡿데이&code=0301,0302
πŸ‘€ μΉ΄λ“œ 등둝 3단계 (μΉ΄λ“œ 등둝) POST /user/card
🏠 챗봇 μΉ΄λ“œ μΆ”μ²œ GET /home?keyword=GS25&paymentAmount=10000
🏠 ν™ˆ ν™”λ©΄ κΈ°λ³Έ 정보 GET /home/basic
🏠 결제 μ—¬λΆ€ λ³€κ²½ PATCH /home/{chat_id}
🏠 μ•Œλ¦Ό 리슀트 쑰회 GET /home/announcement
🏠 μ•Œλ¦Ό 상세 쑰회 GET /home/announcement/{announceId}
🏠 μ‚¬μš©μž 근처 λ‹¨κ³¨κ°€κ²Œ 쑰회 GET /home/gps
🏠 μ•Œλ¦Ό 생성 μš”μ²­ POST /home/announcement
πŸ’³ CODEF λ³΄μœ μΉ΄λ“œ 쑰회 GET/card/list
πŸ’³ CODEF μΉ΄λ“œμ‚¬ μ—°κ²° ν˜„ν™© GET/card/connect
πŸ’³ CODEF μ£ΌμΉ΄λ“œ 등둝 POST /card/main
πŸ’³ CODEF μ£ΌμΉ΄λ“œ 싀적 쑰회 GET /card/main/performance
πŸ’³ λ§ˆμ΄μ›”λ › 쑰회 GET /card
πŸ’³ μ£ΌμΉ΄λ“œ μ•„λ‹Œ μΉ΄λ“œ 싀적 μž…λ ₯ POST /card/performance
πŸ’³ μ›”λ³„ν˜œνƒμ‘°νšŒ GET /card/benefit?month=8
πŸ’³ λͺ©ν‘œ ν˜œνƒ κΈˆμ•‘ μž…λ ₯ POST /card/benefitgoal
πŸ’Ÿ λ§ˆμ΄νŽ˜μ΄μ§€ 쑰회 GET /mypage
πŸ’Ÿ 챗봇 λŒ€ν™” 쑰회 GET /mypage/chathistory?month=2024-01
πŸ’Ÿ μΉ΄λ“œ λͺ©λ‘ 쑰회 GET /mypage/maincard
πŸ’Ÿ μ£ΌμΉ΄λ“œ ν•΄μ œ PATCH /mypage/maincard/{ownedCardId}
πŸ’Ÿ 등둝 μΉ΄λ“œ μ‚­μ œ DELETE /mypage/maincard/{ownedCardId}

πŸ‘©πŸ»β€πŸ’» Back-End Contributors

Jimin Yu Haewon Lee Chaerin Heo

@jiminnee

@haewonny

@julia-heo

About

πŸ’³ λͺ¨λ“  μΉ΄λ“œ ν˜œνƒμ„ ν•œλˆˆμ—

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •