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 init
git add -A
git commit -m "Initial Commit"
Part 2 - Installing Sorcery / Password-based Authentication
- Add sorcery to the Gemfile:
# ./sorcery-tutorial-app/Gemfile
gem 'sorcery'
- Run
bundle
to install sorcery - Run
rails g sorcery:install
to install sorcery without any submodules enabled. - Run
rake db:migrate
to update the database schema with our new user model.