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 usenpm installdocker-compose builddocker-compose run web rake db:createdocker-compose upnpm 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
Gemfilefirst, then… docker-compose builddocker-compose up
Run commands in the Docker instance with docker-compose run web …. Eg: docker-compose run web rake db:create
- Use rbenv to set your Ruby enviroment
- get psql running and the details in the database.yml file
bundle install
rake db:create
rake db:migrate
bundle exec rails s# In a seperate terminal - assets as compiled outside of the asset pipeline
nvm use
npm install
npm run dev