Skip to content

codelittinc/rails-base-project

Repository files navigation

This is a rails 5 base project.

Getting started

  1. Clone the project
  2. Install docker and docker-compose
  3. Inside the project folder run sh bin/dev
  4. Inside the docker console run:
  bundle exec rails db:create
  bundle exec rails db:migrate
  bundle exec rails db:seed
  yarn install

  rails s -b `hostname -i`
  1. Go to your browser and access http://localhost:3000

Here we have the following tools installed:

Devise

Repo: https://github.com/plataformatec/devise

Devise is a flexible authentication solution for Rails based on Warden.

You can customize all devise views running the following generator:

  rails generate devise:views

Rspec Rails

Repo: https://github.com/rspec/rspec-rails

How to execute it:

  bundle exec rspec

Rubocop

RuboCop is a Ruby static code analyzer and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide. To execute it:

  bundle exec rubocop

SCSS Lint

`scss-lint is a tool to help keep your SCSS files clean and readable by running it against a collection of configurable linter rules. It will enforce many of the guidelines outlined in the community Sass Guidelines project
To execute it:

  bundle exec scss-lint

Test coverage

Repo: https://github.com/colszowka/simplecov

After running your tests take a look at the coverage folder: coverage/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •