There are two ways of initializing an app using the create-t3-labrys starter. You can either use this repository as a template, or use Turbo's CLI to init your project (use PNPM as package manager):
npx create-turbo@latest -e https://github.com/Labrys-Group/create-t3-labrysDocumentation is co-located with the code. Key documentation files:
- Project Overview: Main documentation index
- Project Structure: Monorepo organization
- App Documentation:
- Package Documentation:
You can also visit the online documentation at https://create.labrys.io/ (if hosted).
To get it running, follow the steps below:
# Install dependencies
pnpm i
# Configure environment variables
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .envrm -rf apps/expocd apps/nextjs
pnpm devRun the ui-add script to add a new UI component using the interactive shadcn/ui CLI:
pnpm ui-addWhen the component(s) has been installed, you should be good to go and start using it in your app.
To add a new package, simply run pnpm turbo gen init in the monorepo root. This will prompt you for a package name as well as if you want to install any dependencies to the new package (of course you can also do this yourself later).
The generator sets up the package.json, tsconfig.json and a index.ts, as well as configures all the necessary configurations for tooling around your package such as formatting, linting and typechecking. When the package is created, you're ready to go build out the package.
To get it running, follow the steps below:
# Install dependencies
pnpm i
# Configure environment variables
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env-
Make sure you have XCode and XCommand Line Tools installed as shown on expo docs.
NOTE: If you just installed XCode, or if you have updated it, you need to open the simulator manually once. Run
npx expo startfromapps/expo, and then enterIto launch Expo Go. After the manual launch, you can runpnpm devin the root directory.+ "dev": "expo start --ios", -
Run
pnpm devat the project root folder.
-
Install Android Studio tools as shown on expo docs.
-
Change the
devscript atapps/expo/package.jsonto open the Android emulator.+ "dev": "expo start --android", -
Run
pnpm devat the project root folder.
Run the ui-add script to add a new UI component using the interactive shadcn/ui CLI:
pnpm ui-addWhen the component(s) has been installed, you should be good to go and start using it in your app.
To add a new package, simply run pnpm turbo gen init in the monorepo root. This will prompt you for a package name as well as if you want to install any dependencies to the new package (of course you can also do this yourself later).
The generator sets up the package.json, tsconfig.json and a index.ts, as well as configures all the necessary configurations for tooling around your package such as formatting, linting and typechecking. When the package is created, you're ready to go build out the package.