Skip to content

theglobechurch/one21-cms

Repository files navigation

One21 Admin Goodness

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.

Toolbox

  1. Docker
  2. Ruby on Rails

Set up

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

Development

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

Running outside of Docker, etc?

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published