Author: Pratik Vyas
- Stores and versions recipes for RecipeHub
- Uses PostgresSQL JSON column type to store ingredients and steps
- Copy on Write mechanism for versioning
- Recursive querying to list versions
- Efficient forking
- Exposes a ReSTFul API
-
Clone this repository
cd /your/projects/dir git clone https://github.com/recipehub/recipehub-service recipehub-service cd recipehub-service
-
Install virtualenv, virtualenvwrapper
sudo pip install virtualenv virtualenvwrapper
-
source virtialenvwrapper.sh in your bashrc / zshrc
echo source `which virtualenvwrapper.sh` >> ~/.bashrc
-
Start a new shell or source virtualenvwrapper.sh
source `which virtualenvwrapper.sh`
-
Make a virtualenv
mkvirtualenv recipehub-service -a `pwd` && add2virtualenv `pwd`
-
Create postgres db
createdb recipehub_service
-
Install requirements
workon recipehub-service pip install -r requirements.txt
python api.py
make test
They are also run on Travis, https://travis-ci.org/recipehub/recipehub-service
GNU GPL v3