wanted-a / gis-restaurant Goto Github PK
View Code? Open in Web Editor NEW지리정보를 기반한 맛집 추천 서비스 입니다.
지리정보를 기반한 맛집 추천 서비스 입니다.
맛집 목록 조회
etc...
yyyy-mm-dd
변환, null -> 0000-00-00
으로 처리do-si
: 도, 시(특별시 등)sgg
: 시군구lat
: 위도lon
: 경도시도
, 시군구
로 지역 조회 기능에 사용됩니다.etc...
Celery, Redis, PostgreSQL 등 여러 툴과의 연동 및 테스트, 향후 배포에 대한 편의성을 향상시키기 위해 도커와 도커 컴포즈를 적용하고자 합니다.
get
put
delete
위도와 경도는 put으로 수정할 수 없으며, 사용자가 위치한 곳의 위도와 경도가 입력됩니다.
redis 를 연동해서, 가능한 만큼 구현 해 보고자 합니다.
restaurants 앱의 tasks.py 에서, 외부 api 서버의 변경 사항만 반영하도록 하는 로직의 구성이 필요한 상황입니다.
# restaurants/tasks.py
# 전처리된 데이터를 실제 저장하는 함수
@shared_task
def save_raw_data(total_list, page):
for raw_data in total_list:
try:
preprocessed_data = preprocess_data(raw_data)
restaurant_code = f'{preprocessed_data.get("BIZPLC_NM")}|{preprocessed_data.get("REFINE_LOTNO_ADDR")}|{preprocessed_data.get("LICENSG_DE")}'
# 근데 여기서 continue하면 업데이트가 안됨....
if Restaurant.objects.filter(restaurant_code=restaurant_code).exists():
continue
mapped_data = {FIELDS[k]: v for k, v in preprocessed_data.items()}
mapped_data["restaurant_code"] = restaurant_code
Restaurant(**mapped_data).save()
except Exception as e:
response = {
"error_message": e,
"error_page": page,
"error_point": raw_data.get("BIZPLC_NM"),
}
print(f"save_raw_data error : {response}")
continue
경기 open api (외부 서버) 를 통해 db는 미리 받은 상태에서, 외부 db에서 변경된 데이터를 로컬 내(테스트 환경)개발 pc에 있는 로컬 db 에도 반영 되도록 하는 비교 및 업데이트 로직을 적용 해보려 합니다.
models 에 추가적인 전처리는 아직까진 고려하지 않고 있습니다.
기 작성한 API 기능에 Swagger 적용하여 문서 자동화 시도
etc...
맛집 상세정보 API
맛집 모든필드
를 포함합니다.평가
상세 리스트도 포함됩니다.
평가
는 아래 참조.)맛집 상세정보 같은 경우에는 두가지로 분리해서 개발 진행하였습니다.
GET api/v1/restaurants/detail/<int:restaurant_id>/
GET api/v1/restaurants/<int:restaurant_id>/
맛집 평가 등록 API
유저
가 특정 맛집
에 평가를 한다.평가
가 생성되면, 해당 맛집의 평점
을 업데이트 한다.
etc...
맛집 평가 정보 조회
etc...
데이터 저장
etc...
사용자 회원가입
점심추천, 위도, 경도 추가해야함
�사용자 로그인
etc...
데이터 자동화
etc...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.