Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.
/ startingapp Public archive

A starting app in Ruby on Rails 5 including bootstrap 4, rspec and devise.

License

Notifications You must be signed in to change notification settings

lucianghinda/startingapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This repository is not maintained anymore. There are better starting kits and more up-to-date

README

PURPOSE

The purpose is to have a starting template in Ruby on Rails with the following requirements:

  1. Ruby on Rails v5
  2. Bootstrap v4 - alpha
  3. Bootstrap Theme - one theme from Bootswatch
  4. Database: PostgreSQL
  5. Testing framework: RSpec + Guard
  6. Capistrano Template for deployment
  7. Devise Secured
  8. Public Page
  9. Welcome Page (after login)

How to setup the StartingApp

  1. Bundle install
  2. 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>
  1. Copy config/mailer_config.yml.sample to config/mailer_config.yml. And write your own credential in it.
  2. rails db:create
  3. rails db:migrate
  4. bundle exec rspec spec/acceptance/*
  5. rails s

How to use it

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

Bootstrap v4 - alpha

todo Define what gem was used and how to do upgrades

Public Page

One controller Greetings with an index action.

Testing Framework RSpec + Guard

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

Database PostgreSQL

This StartePpp uses PostgreSQL adapter.

About

A starting app in Ruby on Rails 5 including bootstrap 4, rspec and devise.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published