Skip to content

A monorepo containing a Next.js web application and Expo React Native mobile application with shared code.

Notifications You must be signed in to change notification settings

tao101/nextjs15-expo-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next-Expo Monorepo

A monorepo containing a Next.js web application and Expo React Native mobile application with shared code.

Project Structure

├── apps/
│ ├── mobile-app/ # Expo React Native app (expo router)
│ └── web-app/ # Next.js 15 application
├── shared/ # Shared utilities between web and mobile
├── package.json # Root workspace config
└── pnpm-workspace.yaml # Monorepo configuration

Features

  • 🚀 Cross-platform development (iOS, Android, Web)
  • ♻️ Shared code between mobile and web (see shared/utils/generateRandomId.ts)
  • 📦 Modern monorepo setup with PNPM workspaces

Prerequisites

  • Node.js 20+
  • PNPM 10+
  • iOS/Android simulators (for mobile development)

Package Management

This monorepo uses PNPM workspaces. To install packages for specific parts of the project:

pnpm install --filter <package-name>

Web app only (Next.js):

pnpm install --filter web-app

Mobile app only (Expo):

pnpm install --filter mobile-app

Shared library only:

pnpm install --filter shared

Getting Started

  1. Install dependencies
pnpm install
  1. Run the mobile app (Expo)
pnpm dev:mobile
  1. Run the web app (Next.js)
pnpm dev:web
  1. Open apps:

Learning Resources

About

A monorepo containing a Next.js web application and Expo React Native mobile application with shared code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published