Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Rails + Tabler + Sidekiq + Devise + Docker boilerplate

License

Notifications You must be signed in to change notification settings

resitcl/rails-tabler-boilerplate

Repository files navigation

ResIT Rails + Devise + Sidekiq Boilerplate

Español

Boilerplate de Rails + Devise + Sidekiq dockerizado y basado en el template Tabler.

Además, implementa un scaffold únicamente de vistas en la carpeta lib. Se utiliza igual que el scaffold normal de Rails y genera formularios basados en Tabler y tablas con DataTables ya implementado. Por ejemplo:

rails g tabler_scaffold Order user:references client:references name due_date

Archivos que modificar:

  • application.rb y application.html.rb: nombre de la aplicación
  • database.yml: configuración DB
  • docker-compose.yml: nombre de la aplicación, puertos y credenciales Postgres
  • package.json: detalles de la aplicación
  • cable.yml: nombre aplicación
  • seeds.yml: eliminar o editar
  • application_mailer.rb: Cambiar default from
  • development.rb y production.rb: ingresar datos mailer
  • devise.rb: cambiar mailer from
  • _footer.html.erb: cambiar datos empresa

Comandos que correr

  • bundle exec rake secret y reemplazar los hash en secrets.yml
  • rake db:create && rake db:migrate && rake db:seed
  • npm install

English

Rails + Devise + Sidekiq dockerized boilerplate based on Tabler template.

It also implements a Tabler ready views scaffold placed on lib folder. It's used the same way usual scaffold is used and it generates forms based on Tabler forms, including DataTable's ready tables and combo boxes with references fields. For example:

rails g tabler_scaffold Order user:references client:references name due_date

Files which require modification:

  • application.rb y application.html.rb: app name
  • database.yml: DB configuration
  • docker-compose.yml: app name, ports and Postgres credentials.
  • package.json: app name and details.
  • cable.yml: app name
  • seeds.yml: edit or remove
  • application_mailer.rb: set default from
  • development.rb y production.rb: set mailer data
  • devise.rb: set mailer from
  • _footer.html.erb: set company or legal info

Commands

  • bundle exec rake secret and replace secrets.yml secrets
  • rake db:create && rake db:migrate && rake db:seed
  • npm install