recipe_api
1.0.0
Ini adalah database resep dan API open source.


Mulai Postgres:
docker-compose up -d postgres
Pasang dependensi Python:
pip install -r requirements.txt
Buat Database dan Tabel:
python manage.py migrate
Buat tabel cache:
python manage.py createcachetable
Buat SuperSuser untuk Admin:
python manage.py createsuperuser
Goresan resep:
python manage.py scrape --urls --recipes --images --ingest
Jalankan server web:
DEBUG=1 python manage.py runserver
URL: http: // localhost: 8000
Klon repo dulu.
Mengemukakan semuanya:
docker-compose up -d
Menyebarkan pembaruan front-end:
git pull
docker-compose up --force-recreate -d recipes
Menyebarkan bagian depan dan back-end:
git pull
docker-compose up --build --force-recreate -d recipes
Force Scrape:
docker-compose exec recipes python manage.py scrape --urls --recipes --images --ingest --force
Hapus Cache:
docker-compose exec recipes python manage.py shell
from django.core.cache import cache
cache.clear()