Flask & Ferris 3 example for Google App Engine
This is an example project of using Ferris3 features inside of a simple Flask project.
This is based on the Google Flask Skeleton.
Description of functionality
This is more or less the App Engine Guestbook example written in Flask. The application uses Ferris' search utilites to automatically add entities to the search index and search over them.
Clone this repo with
git clone https://github.com/jonparrott/flask-ferris-example.git
Install dependencies in the project's lib directory.
cd flask-ferris-example pip install --pre -r requirements.txt -t lib
Run this project locally from the command line:
Visit the application http://localhost:8080
See the development server documentation for options when running dev_appserver.
Basic steps to include Ferris in existing projects
Add endpoints to your app.yaml's libraries section. Even if you don't use endpoints, this is a prerequisite for ferris3.
libraries: - name: endpoints version: 1.0
Add ferris to your requirements.txt
Install all requirements using pip. Be sure to use the
pip install --pre -r requirements.txt -t lib
You can now import
ferris3and use all features you'd like.
Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.
Jon Wayne Parrott, based on the skeleton by Logan Henriquez and Johan Euphrosine