Rails setup intended for the Lincoln Union Church website but which could be made to work for other churches or organisations.
If you have docker, seed the database with:
docker-compose run -e INITIAL_USER_NAME="Test" -e INITIAL_USER_EMAIL="email@example.com" -e INITIAL_USER_PASSWORD="Testing1" web bundle exec rails db:seed
Then start a server with:
In addition to the standard requirements for Ruby on Rails you will need
As with any Rails site, you can start a local development server with
bundle exec rails server,
but you'll need to manually create an admin user before you can actually do anything. The easiest
way to do that is to seed the database:
INITIAL_USER_NAME="Your name" INITIAL_USER_EMAIL="firstname.lastname@example.org" INITIAL_USER_PASSWORD="secret" bundle exec rails db:seed
This also creates a default homepage, but to make things work you'll need to go to
/admin, log in
with the credentials you decided on above, and create and edit pages and settings.