Skip to content
Rails + Tabler + Sidekiq + Devise + Webpacker Docker boilerplate
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
tmp
vendor
.eslintrc
.gitignore
.gitlab-ci.yml
.postcssrc.yml
.stylelintrc
Dockerfile
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
docker-compose.yml
init.sh
package-lock.json
package.json
yarn.lock

README.md

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
You can’t perform that action at this time.