项目作者: masudcsesust04

项目描述 :
Rails 6, Devise authentication, Rspec and Twitter bootstrap 5, rubocop coding convention gem integrated new application starter project.
高级语言: Ruby
项目地址: git://github.com/masudcsesust04/rails-web-starter.git
创建时间: 2017-01-25T17:37:18Z
项目社区:https://github.com/masudcsesust04/rails-web-starter

开源协议:MIT License

下载


Rails web starter application

Rails 6, Devise authentication, CanCanCan user role based authorization, Rspec and Twitter bootstrap 4 CSS framework integrated sample project.

Software Versions

  • Ruby 3.0
  • Rails 6.1.1
  • PostgreSQL 12.1
  • NodeJS >= 15.0.1

Source code repository

  1. $ git clone git@github.com:masudcsesust04/rails-web-starter.git
  2. $ git fetch origin
  3. $ git checkout -b development origin/development

Note: Use development branch for application developmet. Start from this branch to create your feature branches.

System dependencies

  1. $ gem install bundler
  2. $ bundle config set --local path vendor/bundle
  3. $ yarn install

Configuration

  • Make a copy of .env.sample file as .env and update DB configuration as your db host, name etc.

Database creation

  1. $ bundle exec rake db:create:all

Database initialization

  1. $ bundle exec rake db:migrate
  2. $ bundle exec rake db:seed
  3. $ bundle exec rake db:test:prepare

Run application

  1. $ bundle exec foreman start -f Procfile.dev

or

  1. $ bash run.sh

Enter rails console

  1. $ bundle exec rails c

Run the rspec test suite

  1. # to run all of the test suite
  2. $ bundle exec rspec
  3. # to run sepcific spec file
  4. $ bundle exec rspec file_name_with_path

Run rubocop to fix offenses

  1. $ bundle exec rubocop

Services (job queues, cache servers, search engines, etc.)

  • Add here, If you used any over the application development life cycle.

Deployment instructions

  • Add capistrano or
  • Docker deployment instructions