Citygram herokuapp
Citygram is hosted on Heroku via their ongoing support for the 2014 Code for America fellowship.
Responsibilities
The application has several:
- Contains the choices for the several cities with datasets available
- Allows the user to select from the eligible data sets for a city
- Geocodes user input (this is an intricate story to tell across our city base)
- Gathers user contact information (email or cell phone)
- Maintains the publishing schedule via 10 min collection poll
- Sends text messages via Twilio
- Send email digests via Sendgrid
Code
The codebase is here.
Data
The application uses approximately 11GB as of this writing, and the compressed version is about 750MB.
Run Rate
The application's run rate is $150/mo for the dynos at 2 2x app dynos and 1 2x worker.
The addons are $79mo, including the following:
- Deploy hooks-- these notify the Code for America and Code for Charlotte Slack channels on deployments of the app.
- Redis to Go: Mini
- Endpoint SSL-- with Heroku's Lets Encrypt we can probably stop paying for this?
- Heroku Postgres 0-- a professional DB support tier
- Heroku Scheduler-- absolutely critical to ongoing operations, powers and configures the publisher polling that publishes events
- SendGrid Starter-- Sends our email digest
- NewRelic APM-- Monitors the performance of the application at runtime