Generates a "click" - total of how many people are at an Eventbrite event.
Uses the Flask web microframework.
-
Ensure you have Python installed.
-
Generate your personal Eventbrite OAuth token.
-
Create
envvars.bash
:cp envvars-example.bash envvars.bash
-
Create a virtualenv:
virtualenv .venv source .venv/bin/activate
-
Run the program:
heroku local web
- https://devcenter.heroku.com/articles/getting-started-with-python
- https://dashboard.heroku.com/apps/ciaff-eventbrite-click
-
App is connected to GitHub so a deploy to
master
will deploy to Heroku:git checkout master git push origin
-
View the build from Heroku's Activity page.
heroku logs --tail
heroku ps
heroku ps:scale web=1
- https://www.mlab.com/databases/heroku_h5cf0v6g
- https://elements.heroku.com/addons/mongolab
- https://docs.mongodb.com/getting-started/python/
- https://cloud.mongodb.com - not using this
- The folder structure is based on Learn Python The Hard Way Exercise 46: A Project Skeleton.
- The build was configured to work with CircleCI via Continuous Integration and Continuous Deployment with Python.
The following resources were used (but not harmed) in the making of this program:
- https://github.com/valermor/nose2-tests-recipes - great nose2 examples
- https://discuss.circleci.com/t/junit-reporting-with-nose2/1601
- https://circleci.com/docs/continuous-deployment-with-heroku/
virtualenvwrapper
- worth looking into.