Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

James White
James White
6,159 Points

I built a Flask app that lets you search for clinical trials

I've been playing around with Flask since finishing the basics course and I love it.

I've been working on a Flask app with an Elasticsearch backend that let's you search for clinical trials.

There's a python script that downloads a zip file from clinicaltrials.org, unzips the files and places the contents (a collection of xml files, one file for each trial) in a folder.

Then I iterate over each file pulling out the info I want and putting it into an Elasticsearch document using elasticsearch-py.

Then I wrote a Flask app to search ES using Bootstrap as my front end framework.

I've got it deployed to DigitalOcean, but honestly I'm not sure how this is serving up pages because I'm fairly certain I stopped the process, but hey, it's working so I'll run with it.

If you want to test the searches try terms like 'lung', 'cancer', 'renal', or 'sarcoma'. And be sure to read the Search Help or any Lucene or Elasticsearch query docs.

http://104.236.62.7/

Kenneth Love

4 Answers

James White
James White
6,159 Points

I'm not sure whey it dropped off line, and I'm not sure why it was up either really. I've tried following the instructions to deploy to Digital Ocean. Anyone able to help or offer better tutorials?

What have you tried so far?

I have not done this myself, but these directions look like they would get you there:

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-14-04