This project created a backend for One21 to allow churches to create their own sermon studies as well as custom guides for specific one-to-ones.
It outputs an API (documentation) which the One21 frontend (React) feeds from.
- Docker
- Ruby on Rails
Create /config/application.yml
with the tokens:
esv_api_token: "{token from https://api.esv.org}"
devise_secret_key: "{token from `bundle exec rake secret`}"
nvm use
npm install
docker-compose build
docker-compose run web rake db:create
docker-compose up
npm run dev
- Visit http://localhost:3010
Helpful overview of quickstarting Docker + Rails.
Exit with:
docker-compose down
SSH into the Docker Container:
docker ps
(get the container-id)docker exec -it {container-id} bash
When adding new gems:
- add them to the
Gemfile
first, then… docker-compose build
docker-compose up
Run commands in the Docker instance with docker-compose run web …
. Eg: docker-compose run web rake db:create