A text message reminder system for San Francisco Human Services Agency.
This project is young and in flux. Feel free to email [email protected] if you're interested in deploying or contributing.
- Install Rails and Bundler if you don't already have them
gem install rails
gem install bundler
- Install PostgreSQL
- Mac: https://postgresapp.com/
- Other: https://www.postgresql.org/
- Clone this repo
git clone https://github.com/codeforamerica/landshark.git
- Install required gems
cd landshark
bundle install
- Setup environment variables
- Edit .sample_env by replacing with your Postgres username ($USER by default)
- Rename .sample_env to .env
LandShark requires four env vars: RACK_ENV, TWILIO_NUMBER, TWILIO_SID, and TWILIO_TOKEN. The easiest way is to use foreman and a .env file in the root directory, but there are many ways to do this. Heroku has a good overview here.
Make sure your .gitignore always includes /.env so you don't publicize your secret keys.
- Setup local database
- First, edit config/database.yml to include your Postgres username ($USER by default):
development:
adapter: postgresql
host: localhost
username: <username>
database: landshark
- Then run:
rake db:create
rake db:migrate
- Start the server
foreman start
- You should see the project at https://localhost:5000