recipe_api
1.0.0
오픈 소스 레시피 데이터베이스 및 API입니다.


Postgres 시작 :
docker-compose up -d postgres
파이썬 종속성 설치 :
pip install -r requirements.txt
데이터베이스 및 테이블 작성 :
python manage.py migrate
캐시 테이블 만들기 :
python manage.py createcachetable
admin 용 슈퍼 사용자 생성 :
python manage.py createsuperuser
스크랩 레시피 :
python manage.py scrape --urls --recipes --images --ingest
웹 서버 실행 :
DEBUG=1 python manage.py runserver
URL : http : // localhost : 8000
클론 레포 먼저.
모든 것을 가져 오십시오 :
docker-compose up -d
프론트 엔드 업데이트 배포 :
git pull
docker-compose up --force-recreate -d recipes
전면 및 백엔드 배포 :
git pull
docker-compose up --build --force-recreate -d recipes
강제 스크랩 :
docker-compose exec recipes python manage.py scrape --urls --recipes --images --ingest --force
클리어 캐시 :
docker-compose exec recipes python manage.py shell
from django.core.cache import cache
cache.clear()