Skip to content

awesome/rails6-mongoid-devise-rspec-cucumber

Repository files navigation

Rails6, Mongoid, Devise, RSpec & Cucumber

awesome

Example Rails 6 app with Mongoid, Devise, RSpec and Cucumber.

Main Components

Ruby 2.7.1

Rails 6.0.3.4

  • works great!

Mongoid 7.0.11

# macOS bigsur
# 1) install
$ brew tap mongodb/brew
$ brew install mongodb-community

# 2) start on background process
$ brew services run mongodb-community

# show version
$ mongo --version
MongoDB shell version v4.4.3
Build Info: {
    "version": "4.4.3",
    "gitVersion": "913d6b62acfbb344dde1b116f4161360acd8fd13",
    "modules": [],
    "allocator": "system",
    "environment": {
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

Devise 4.7.3

Test Suite

  • run: rake

Cucumber-Rails 2.2.0

  • run: rake cucumber
  • help: rake -T cucumber

RSpec-Rails 4.0.2

  • run: rake spec
  • help: rake -T rspec

CircleCI

Webpacker

When compiling assets for production on a remote server, such as a continuous integration environment, it's recommended to use yarn install --frozen-lockfile to install NPM packages on the remote host to ensure that the installed packages match the yarn.lock file. -- https://github.com/rails/webpacker#deployment

Credits

TODO

(for README)

  • Ruby version
  • System dependencies
  • Configuration
  • Devise modules
  • Database/Mongoid
  • How to run the test suite
  • Services (job queues, cache servers, search engines, etc.)
  • Deployment instructions

MIT License

https://github.com/awesome/rails6-mongoid-devise-rspec-cucumber/blob/master/LICENSE.md