Skip to content

leonardobrito/rails_boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

Requirements

  • Docker
  • Docker-compose

Getting Started

  • create a .env file based on .env.example and copy the content of .env.example to .env ($ cp .env.example .env)
  • docker compose build
  • docker compose run web bundle install
  • docker compose run web bin/rails db:setup
  • bin/dev
  • visit http://localhost:3000/

Graphql

Run tests

  • docker compose exec web bundle exec bin/rspec -P .//**/_spec.rb (-P .//**/_spec.rb is needed to run specs from packs)
  • open coverage/index.html (Check coverage report)

Check lint

  • docker compose exec web bundle exec bin/lint

Check Security Vulnerabilities

  • docker compose exec web bundle exec bin/scan

API Doc Swagger

Sidekiq

Observation: Every time that a new job is created, the server should be stopped and sidekiq image needs to be re-build, to perform that run the followed commands:

  • docker compose stop
  • docker compose up --build

Contributing

We encourage you to contribute to rails_boilerplate! Please check out the Contributing to rails_boilerplate guide for guidelines about how to proceed.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 90.0%
  • HTML 5.6%
  • JavaScript 1.3%
  • Dockerfile 1.2%
  • Shell 1.2%
  • CSS 0.7%