Create a new project with option to select your prefered UI library with:
npx create-uni-app
Rename .env.sample to .env
mv .env.sample .env
TypeError: ExpoResponse is not a constructor
error if you don't do this before running the server
npm run prisma:generate
npm run web
This spins up the web app with expo router API routes
In a separate terminal run
npm run start
In the same window hit I in your keyboard to launch IOS simulator or A for Android emulator
- Expo v50
- Typescript v5
- Prisma v5.9
- tRPC v11
- Expo Router v3
- UI
- Nativewind v4
- Tamagui
- gluestack-ui
- SQLite database
SQLite database comes with two tables
users
, andposts
for you to try out the setup.
To generate and instantiate Prisma Client run:
npm run prisma:generate
The db push command pushes the state of your Prisma schema file to the database without using migrations.
npm run prisma:push
Explore and manipulate your data with a web UI
npm run prisma:studio
See the contributing guide to learn how to contribute to the repository and the development workflow.
Follow Rodrigo Figueroa, creator of uni-stack
for updates on the project and universal app development on x/twitter
- Nader Dabit for RN-AI and using it's CLI setup as a template to build uni-stack CLI.
- Nishan for expo-trpc starter that served as inspiration to build this setup.
- Nate Birdman from Tamagui for testing this modified version of the Tamagui Expo Router starter and fixing various issues.
- Sanket Sahu from Gluestack for being the first to join the conversation about the project and offer his support.
MIT