recipe_api
1.0.0
This is an open source recipe database and api.


Start postgres:
docker-compose up -d postgres
Install python dependencies:
pip install -r requirements.txt
Create database and tables:
python manage.py migrate
Create cache tables:
python manage.py createcachetable
Create superuser for admin:
python manage.py createsuperuser
Scrape recipes:
python manage.py scrape --urls --recipes --images --ingest
Run web server:
DEBUG=1 python manage.py runserver
URL: http://localhost:8000
Clone repo first.
Bring up everything:
docker-compose up -d
Deploy front-end updates:
git pull
docker-compose up --force-recreate -d recipes
Deploy front and 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
Clear cache:
docker-compose exec recipes python manage.py shell
from django.core.cache import cache
cache.clear()