Skip to content

taeheeee/cocktail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5조프로젝트- cocktail

개요 1. 칵테일 레시피와 재료 API를 이용한 검색 리뷰 사이트

  1. 프로젝트 목표

    1. 기본 CURD를 이용한 웹 어플리케이션 작성
    2. JINA2 를 이용한 서버 사이드 렌더링의 이해
    3. JWT 토큰을 이용한 프로그램
  2. 참고 api

    1. https://www.thecocktaildb.com/api.php
  3. DB 구조화 ()

    "user" : { "userid" : string, "username" : string, "password" : string, "_id" : integer, favorite : array }

    comment :{ "_id" : integer, "userid" : string, "comments" : string, "number" : integer, "idDrink" : integer, }

  4. API

    URL METHOD DATA
    user/api/login POST {userid[string], password[string], _id[objectID] }
    user/api/register POST {userid[string], username[string], password[string], _id[objectID], favorite[list]}
    user/api/nick GET {userid[string]}
    search/result POST {drink_name[string]}
    favorite/user_check POST {username[string], favorite[array] }
    favorite/add_heart POST {username[string], drink_name[string], favorite[array]}
    favorite/delete_heart POST {username[string], drink_name[string], favorite[array]}
    comment/write POST {username[string], drink_name[string], comment[string], numbering[int]}
    comment/update POST {username[string], drink_name[string], comment[string], numbering[int]}
    comment/delete POST {username[string], drink_name[string], comment[string], numbering[int]}
  5. Route Name

ROOT ROUTE NAME SUB ROUTE NAME FUNCTIONS LOCATION
/ 1,2,3,4...... Pagination index.py
/favorite favorite.html Check your favorite cocktail if you're my memeber index.py
/register registr.html Register member with ID, PW index.py
/login login.html Log-in if you're my memeber index.py
/drink/ detail.html Show cocktail's detail that you are interseted in index.py
  1. 사용된 모듈
  • flask
    • blueprint
    • jinja2
    • url_for
    • render_template
    • request
    • jsonfiy
    • render_template
  • requests
  • dotenv -> secured enviornment
  1. 폴더 구조 및 설명
  • static

    • css
      • comment.css
      • filter.css
      • index.css
      • list.css
  • templates

    • html
      • commnet.html <---코멘트 기능
      • filter.html <-----필터 기능
      • list.html
      • login.html
    • modules
      • comment.py
      • filter.py
      • list.py
      • login.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages