Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.5 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.5 KB

Head Start Parent Notifications Build Status

============= Make it easy for Head Start teachers to notify parents of school closures and other events via text messages.

Installation

  • Clone the repository into a local directory.
  • bundle install --without production
  • rake db:setup
  • rails s

Preregistration

  • Before running anything, create the environmental stuff

Configuration

Running Locally

  • rails s -b $IP -p $PORT

Reset Data

  • In the terminal, type:
  • rake db:reset db:migrate

Running Tests

  • rake db:test:prepare
  • cucumber --require features features/students.feature

F.A.Q.

I'm having a problem installing the Postgres pg gem. What's up with that?

Postgres is only used in our production version. If you're trying to set up a developmental working copy, make sure you're using bundle install --without production to install the sqlite gem instead.

My cucumber tests are either not getting run, or just failing! What should I do?

If you're getting a problem like Could not find table 'classrooms' (ActiveRecord::StatementInvalid), make sure you've prepared the test database by using the command bundle exec rake db:test:prepare. Otherwise, try resetting the database with bundle exec rake db:reset or updating your Gems with bundle update.