Watch: Add ready-made login screens with Clerk | Vovy

Watch Vovy do it on a Mac: "Set up Clerk so my app has sign in and user profiles". Vovy creates a Clerk app, drops its prebuilt sign in and user profile components into your code, and protects your private routes.

"Set up Clerk so my app has sign in and user profiles"

Vovy creates a Clerk app, drops its prebuilt sign in and user profile components into your code, and protects your private routes.

What happens in the video

  1. Create the Clerk application: Vovy creates an app in the Clerk Dashboard and picks sign-in options with you: email, Google, GitHub, or others.
  2. Add the keys to .env: It copies the publishable key, which starts with pk_test_, and the secret key into .env.local, and confirms .env files are ignored by Git.
  3. Install Clerk and wrap the app: In Cursor it installs the Clerk package, wraps your app in ClerkProvider, and adds SignInButton and UserButton to your header.
  4. Protect private routes: Vovy adds clerkMiddleware with a list of protected routes so logged-out visitors are sent to sign in.
  5. Sign up and show the user: It signs up a test user in Chrome and shows them in the Clerk Dashboard Users page, with a card on what Clerk handles for you.
Read the step-by-step guide