Skip to content

clerk/clerk-rails-starter

Repository files navigation


Clerk Rails Starter

Official guide on how to add authentication to Rails with Clerk.dev

Sign up with Clerk.dev

Getting started on Heroku

Get your CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY environment variables from Clerk Dashboard.

Getting started locally

  1. Fork this repo
  2. Clone your fork locally with git clone
  3. cd into your freshly cloned git repo
  4. cp .env.sample .env.local
  5. Find your instance configuration in the Clerk dashboard and edit your .env.local accordingly
  6. Run bundle install (you need to have Ruby and bundler installed)
  7. Run yarn install (you need to have npm and yarn 1 installed)
  8. Run the server with rails s

Learn More

To learn more about Clerk.dev take a look at the official documentation.