Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Rails + Tabler + Sidekiq + Devise + Webpacker Docker boilerplate

License

Notifications You must be signed in to change notification settings

resitcl/rails-tabler-webpacker-boilerplate

Repository files navigation

ResIT Rails + Devise + Sidekiq + Webpacker Boilerplate

Code Climate

Español

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

Fork de https://github.com/resitcl/rails-tabler-boilerplate

Implementa dos scaffold en la carpeta lib. Se utilizan igual que el scaffold normal de Rails:

  • Este 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
    
  • Este genera un componente javascrip en la carpeta app/javascript, el cual puede ser implementado en las vistas. Por ejemplo:

    rails g component_js Input
    

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
  • config/webpack/environment.js: configuración de Webpaker

Comandos que correr

  • bundle exec rake secret y reemplazar los hash en secrets.yml
  • rake db:create && rake db:seed
  • yarn install
  • ./bin/webpack-dev-server: para refrescamiento automático

English

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

Fork of https://github.com/resitcl/rails-tabler-boilerplate

Implement tow scaffold place on lib folder. They are used just like the normal Rails scaffold:

  • This generates forms based on Tabler and tables with DataTables already implemented. For example:

    rails g tabler_scaffold Order user:references client:references name due_date
    
  • This generates a javascript component in the app/javascript folder, which can be implemented in the views. For example:

    rails g component_js Input
    
    

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
  • config/webpack/environment.js: configuración de Webpaker

Commands

  • bundle exec rake secret and replace secrets.yml secrets
  • rake db:create && rake db:seed
  • npm install
  • ./bin/webpack-dev-server: para refrescamiento automático