The purpose is to have a starting template in Ruby on Rails with the following requirements:
- Ruby on Rails v5
- Bootstrap v4 - alpha
- Bootstrap Theme - one theme from Bootswatch
- Database: PostgreSQL
- Testing framework: RSpec + Guard
- Capistrano Template for deployment
- Devise Secured
- Public Page
- Welcome Page (after login)
- Bundle install
- Create a .env file inside the StartingApp root with the following content:
export RAILS_DATABASE_NAME=<name of the database>
export RAILS_TEST_DATABASE_NAME=<name of testing database>
export RAILS_DATABASE_USERNAME=<username for accessing database>
export RAILS_DATABASE_PASSWORD=<password for accessing database>
- Copy config/mailer_config.yml.sample to config/mailer_config.yml. And write your own credential in it.
- rails db:create
- rails db:migrate
- bundle exec rspec spec/acceptance/*
- rails s
During your development you can use Guard to automatically execute written tests.
For this just execute the 'guard' command in your startingapp root path:
startingapp > guard
todo Define what gem was used and how to do upgrades
One controller Greetings with an index action.
Using RSpec for Testing and Guard.
In this StartingApp there are included two Acceptance testing:
- One to check if the Greetings page works
- One to check if the Welcome page works after login
This StartePpp uses PostgreSQL adapter.