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
إنشاء Superuser للمشرف:
python manage.py createsuperuser
وصفات كشط:
python manage.py scrape --urls --recipes --images --ingest
تشغيل خادم الويب:
DEBUG=1 python manage.py runserver
عنوان URL: http: // localhost: 8000
استنساخ repo أولا.
إحضار كل شيء:
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()