Skip to content

CleanCode6/restaurant_management

Repository files navigation

restaurant_management

CAU_Restaurant_Guide의 관리자 page로 Restaurant리스트들을 각각 CRUD합니다.

4가지 page로 구성되어 있습니다.

  • /restaurant -> 목록
  • /register_restaurant
  • /update_restaurant/{id}
  • /restaurents/delete

install

pip install -r requirements.txt

environment

python: 3.9.5 flask:2.0.1

run

python3 app.py

project directory

  1. init.py
  • restaurants()
  • register_restaurant()
  • update_restaurant()
  • delete_restaurant()
  1. app.py
  2. controller.py
  • restaurants_list_controller()
  • register_restaurant_controller()
  • update_restaurant_controller()
  • delete_restaurant_controller()
  1. db_connection.py
  • get_restaurants()
  • get_restaurant()
  • register_restaurant()
  • update_restaurant()
  • make_update_query
  • delete_restaurant
  1. db_connection_test_py
  2. fields.py
  3. forms.py
  • restaurnat_name
  • category
  • score
  • image
  • menu
  • position_x
  • position_y
  • address
  1. model/restaurants/py
  2. page_maker.py
  • make_restautants_list_page()
  • make_resgister_page()
  • make_update_page()
  1. restaurants_test.py

template

  1. forms.html
  2. master.html
  3. create_restaurant.html
  4. restaurants.html
  5. update_restaurant.html

etc

CRUD Template: https://github.com/tanrax/flask-contacts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •