{"id":20750494,"url":"https://github.com/bendavidaaron/bdamilestone","last_synced_at":"2026-05-05T01:32:48.184Z","repository":{"id":106592723,"uuid":"103063803","full_name":"BenDavidAaron/bdaMilestone","owner":"BenDavidAaron","description":"Milestone Project for the Data Incubator","archived":false,"fork":false,"pushed_at":"2018-11-18T21:55:41.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T03:28:40.761Z","etag":null,"topics":["bokeh","flask","heroku","pandas"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenDavidAaron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-10T21:39:29.000Z","updated_at":"2018-11-18T21:55:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"86cec0a9-3d63-4764-aa3b-619ce06bc361","html_url":"https://github.com/BenDavidAaron/bdaMilestone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenDavidAaron%2FbdaMilestone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenDavidAaron%2FbdaMilestone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenDavidAaron%2FbdaMilestone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenDavidAaron%2FbdaMilestone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenDavidAaron","download_url":"https://codeload.github.com/BenDavidAaron/bdaMilestone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243048486,"owners_count":20227636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bokeh","flask","heroku","pandas"],"created_at":"2024-11-17T08:27:39.940Z","updated_at":"2025-12-25T01:36:16.361Z","avatar_url":"https://github.com/BenDavidAaron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# final edit:\nthe app is [here](https://bda-stock-month.herokuapp.com/mile)\n\n# Flask on Heroku\n\nThis project is intended to help you tie together some important concepts and\ntechnologies from the 12-day course, including Git, Flask, JSON, Pandas,\nRequests, Heroku, and Bokeh for visualization.\n\nThe repository contains a basic template for a Flask configuration that will\nwork on Heroku.\n\nA [finished example](https://lemurian.herokuapp.com) that demonstrates some basic functionality.\n\n## Step 1: Setup and deploy\n- Git clone the existing template repository.\n- `Procfile`, `requirements.txt`, `conda-requirements.txt`, and `runtime.txt`\n  contain some default settings.\n- There is some boilerplate HTML in `templates/`\n- Create Heroku application with `heroku create \u003capp_name\u003e` or leave blank to\n  auto-generate a name.\n- (Suggested) Use the [conda buildpack](https://github.com/kennethreitz/conda-buildpack).\n  If you choose not to, put all requirements into `requirements.txt`\n\n  `heroku config:add BUILDPACK_URL=https://github.com/kennethreitz/conda-buildpack.git`\n\n  The advantages of conda include easier virtual environment management and fast package installation from binaries (as compared to the compilation that pip-installed packages sometimes require).\n  One disadvantage is that binaries take up a lot of memory, and the slug pushed to Heroku is limited to 300 MB. Another note is that the conda buildpack is being deprecated in favor of a Docker solution.\n- Deploy to Heroku: `git push heroku master`\n- You should be able to see your site at `https://\u003capp_name\u003e.herokuapp.com`\n- A useful reference is the Heroku [quickstart guide](https://devcenter.heroku.com/articles/getting-started-with-python-o).\n\n## Step 2: Get data from API and put it in pandas\n- Use the `requests` library to grab some data from a public API. This will\n  often be in JSON format, in which case `simplejson` will be useful.\n- Build in some interactivity by having the user submit a form which determines which data is requested.\n- Create a `pandas` dataframe with the data.\n\n## Step 3: Use Bokeh to plot pandas data\n- Create a Bokeh plot from the dataframe.\n- Consult the Bokeh [documentation](http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html)\n  and [examples](https://github.com/bokeh/bokeh/tree/master/examples/embed).\n- Make the plot visible on your website through embedded HTML or other methods - this is where Flask comes in to manage the interactivity and display the desired content.\n- Some good references for Flask: [This article](https://realpython.com/blog/python/python-web-applications-with-flask-part-i/), especially the links in \"Starting off\", and [this tutorial](https://github.com/bev-a-tron/MyFlaskTutorial).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendavidaaron%2Fbdamilestone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendavidaaron%2Fbdamilestone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendavidaaron%2Fbdamilestone/lists"}