Skip to content

purpleworkshops/canary

Repository files navigation

Canary

This is a small app that can be used to try out different hosting services.

Introduction

This app started as a Rails 6.1.4 with rails new canary -d postgresql and then the following changes were made:

  • Added gem 'sidekiq'
  • Added gem 'twilio-ruby'
  • Added gem 'dotfile-rails'
  • Added app/models/message.rb as a very simple database-backed model
  • Added app/services/twilio_service.rb to send text messages
  • Added app/workers/message_worker.rb as a Sidekiq worker
  • Added db/migrate/...create_messages.rb as a migration to create the messages table
  • Added Procfile for use with Heroku and other similar tools.
  • Added Procfile.dev to start Puma, Sidekiq, and Redis together (heroku local -f Procfile.dev then use Ctrl-C twice to quit)

Prerequisites

You will need Redis and Postgres installed and running as local services.

Starting The App

No seed data is necessary to run the app, but you must create a file named .env and populate it with values. See Jeff for details.

Then:

$ rails db:create db:migrate

$ heroku local -f Procfile.dev or you can start each service manually if you prefer

then browse to the home page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published