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 trialJames White
6,159 PointsI 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.
4 Answers
Kenneth Love
Treehouse Guest TeacherThat is amazing! Great job, James White!
Nathan Williams
Python Web Development Techdegree Student 6,851 Pointsvery cool! got to get a few searches in before it dropped offline, nice work!
James White
6,159 PointsI'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?
Myers Carpenter
6,421 PointsWhat have you tried so far?
I have not done this myself, but these directions look like they would get you there:
James White
6,159 PointsI got it deployed!!