Getting Started - Sorcery/sorcery GitHub Wiki
This guide is currently in the middle of being written, in the interim please use the other wiki examples.
Part 1 - Generating a new application
If you're installing Sorcery on an existing application, skip ahead to step 2.
- Run the rails new command:
rails new ~/sorcery-tutorial-app(path given as example, use whatever is convenient) - cd into your application:
cd ~/sorcery-tutorial-app - Initialize git and make the initial commit:
git initgit add -Agit commit -m "Initial Commit"
Part 2 - Installing Sorcery / Password-based Authentication
- Add sorcery to the Gemfile:
# ./sorcery-tutorial-app/Gemfile
gem 'sorcery'
- Run
bundleto install sorcery - Run
rails g sorcery:installto install sorcery without any submodules enabled. - Run
rake db:migrateto update the database schema with our new user model.