This project was created with Better-T-Stack, a modern TypeScript stack that combines Next.js, and more.
- TypeScript - For type safety and improved developer experience
- Next.js - Full-stack React framework
- React Native - Build mobile apps using React
- Expo - Tools for React Native development
- TailwindCSS - Utility-first CSS for rapid UI development
- Shared UI package - shadcn/ui primitives live in
packages/ui - Turborepo - Optimized monorepo build system
First, install the dependencies:
bun installThen, run the development server:
bun run devOpen http://localhost:3001 in your browser to see the web application. Use the Expo Go app to run the mobile application.
React web apps in this stack share shadcn/ui primitives through packages/ui.
- Change design tokens and global styles in
packages/ui/src/styles/globals.css - Update shared primitives in
packages/ui/src/components/* - Adjust shadcn aliases or style config in
packages/ui/components.jsonandapps/web/components.json
Run this from the project root to add more primitives to the shared UI package:
bunx shadcn@latest add accordion dialog popover sheet table -c packages/uiImport shared components like this:
import { Button } from "@conpaws/ui/components/button";If you want to add app-specific blocks instead of shared primitives, run the shadcn CLI from apps/web.
conpaws/
├── apps/
│ ├── web/ # Frontend application (Next.js)
│ ├── native/ # Mobile application (React Native, Expo)
├── packages/
│ ├── ui/ # Shared shadcn/ui components and styles
bun run dev— Start all applications in development modebun run build— Build all applicationsbun run check-types— Check TypeScript types across all appsbun run dev:native— Start the React Native/Expo development serverbun run dev:web— Start only the web application
bun start— Start Expo dev server (development variant)bun start:preview— Start Expo dev server (preview variant)bun start:prod— Start Expo dev server (production variant)bun android— Run on Androidbun ios— Run on iOSbun web— Run web versionbun run lint— Run ESLintbun run type-check— Run TypeScript type checkingbun test— Run tests (Vitest)bun run prebuild— Generate native projectsbun run prebuild:clean— Clean and regenerate native projects
bun run dev— Start Next.js dev serverbun run build— Build for productionbun run start— Start production server