recipe_api
1.0.0
これは、オープンソースレシピデータベースとAPIです。


Postgresを開始します:
docker-compose up -d postgres
Python依存関係をインストールします:
pip install -r requirements.txt
データベースとテーブルを作成します。
python manage.py migrate
キャッシュテーブルを作成します:
python manage.py createcachetable
管理者のスーパーユーザーを作成します:
python manage.py createsuperuser
スクレイプレシピ:
python manage.py scrape --urls --recipes --images --ingest
Webサーバーの実行:
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()