Texts video content from BBC's Tiny Happy People to parents
These instructions will get a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
Docker
-
Clone the repo
-
Navigate to the root directory of the project.
-
Install Ruby dependencies and start the local development server.
docker compose build
docker compose up
- Run the database migrations and seed the database
docker compose exec app.local bash
rails db:schema:load
The local development server will now be accessible at http://localhost:3000.
Most features should work locally though for some you may need to add the appropriate credentials -
see the .env.template
for an example. You may need to set up accounts for the relevant services -
or contact a maintainer for the keys.
docker compose exec app.local rails test
to run unit tests.docker compose exec app.local rails test:system
to run system/end-to-end tests.
We currently use Heroku to host and deploy this app.
The tasks to send messages to parents are set up using Heroku scheduler. See scheduler.rake
for those tasks.