A full-stack application template for authentication and API integration using Next.js and Expo with Clerk authentication.
root/
├── next-app/ # Next.js backend application
├── expo-app/ # Expo frontend application
└── README.md # This file
- Clone the repository
git clone https://github.com/xleron/clerk-cross-platform-template
cd clerk-cross-platform-template
- Set up both applications by following their respective README files:
- Users can sign up/sign in through the Expo mobile app using Clerk authentication
- The Expo app makes authenticated API calls to the Next.js backend
- The Next.js backend validates the authentication token and returns protected data
- Frontend: React Native with Expo
- Backend: Next.js API Routes
- Authentication: Clerk
- Language: TypeScript
- Node.js 20.x
- pnpm
- Expo CLI
- Clerk account and API keys
- Create a Clerk account at https://clerk.dev
- Set up a new Clerk application
- Configure environment variables in both applications