Skip to content

xleron/clerk-cross-platform-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Clerk Cross Platform Template

A full-stack application template for authentication and API integration using Next.js and Expo with Clerk authentication.

📁 Project Structure

root/
├── next-app/        # Next.js backend application
├── expo-app/        # Expo frontend application
└── README.md        # This file

🚀 Quick Start

  1. Clone the repository
git clone https://github.com/xleron/clerk-cross-platform-template
cd clerk-cross-platform-template
  1. Set up both applications by following their respective README files:

🔑 Authentication Flow

  1. Users can sign up/sign in through the Expo mobile app using Clerk authentication
  2. The Expo app makes authenticated API calls to the Next.js backend
  3. The Next.js backend validates the authentication token and returns protected data

🛠 Technology Stack

  • Frontend: React Native with Expo
  • Backend: Next.js API Routes
  • Authentication: Clerk
  • Language: TypeScript

📝 Prerequisites

  • Node.js 20.x
  • pnpm
  • Expo CLI
  • Clerk account and API keys

🔧 Environment Setup

  1. Create a Clerk account at https://clerk.dev
  2. Set up a new Clerk application
  3. Configure environment variables in both applications

About

Use clerk auth between next and expo applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published