Rails 6, Devise authentication, Rspec and Twitter bootstrap 5, rubocop coding convention gem integrated new application starter project.
Rails 6, Devise authentication, CanCanCan user role based authorization, Rspec and Twitter bootstrap 4 CSS framework integrated sample project.
$ git clone git@github.com:masudcsesust04/rails-web-starter.git
$ git fetch origin
$ git checkout -b development origin/development
Note: Use development
branch for application developmet. Start from this branch to create your feature branches.
$ gem install bundler
$ bundle config set --local path vendor/bundle
$ yarn install
.env.sample
file as .env
and update DB configuration as your db host, name etc.
$ bundle exec rake db:create:all
$ bundle exec rake db:migrate
$ bundle exec rake db:seed
$ bundle exec rake db:test:prepare
$ bundle exec foreman start -f Procfile.dev
or
$ bash run.sh
$ bundle exec rails c
# to run all of the test suite
$ bundle exec rspec
# to run sepcific spec file
$ bundle exec rspec file_name_with_path
$ bundle exec rubocop