Rails 6, Devise authentication, CanCanCan user role based authorization, Rspec and Twitter bootstrap 4 CSS framework integrated sample project.
- Ruby 3.0
- Rails 6.1.1
- PostgreSQL 12.1
- NodeJS >= 15.0.1
$ git clone [email protected]: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
- Make a copy of
.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
- Add here, If you used any over the application development life cycle.
- Add capistrano or
- Docker deployment instructions