🔐 Rails MVP Authentication
An authentication generator for Rails 7. Based on the step-by-step guide on how to build your own authentication system in Rails from scratch.
🚀 Installation
Add this line to your application's Gemfile:
gem "rails_mvp_authentication"
And then execute:
bundle
Or install it yourself as:
gem install rails_mvp_authentication
Then run the installation command:
rails g rails_mvp_authentication:install
Once installed make follow these steps:
- Run
bundle install
to install bcrypt - Run
rails db:migrate
to add theusers
andactive_sessions
tables - Add a root path in
config/routes.rb
- Ensure you have flash messages in
app/views/layouts/application.html.erb
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
🙏 Contributing
If you'd like to open a PR please make sure the following things pass:
bin/rails test
bundle exec standardrb
📜 License
The gem is available as open source under the terms of the MIT License.