{"id":19358886,"url":"https://github.com/tiesen243/create-yuki-turbo","last_synced_at":"2026-05-16T09:04:57.951Z","repository":{"id":257479990,"uuid":"858401804","full_name":"tiesen243/create-yuki-turbo","owner":"tiesen243","description":"Clean and typesafe starter monorepo using Turborepo along with Next.js and tRPC","archived":false,"fork":false,"pushed_at":"2024-10-22T06:24:35.000Z","size":2035,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-23T06:31:20.223Z","etag":null,"topics":["nextjs","prisma","shadcn-ui","trpc","turborepo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiesen243.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T20:40:52.000Z","updated_at":"2024-10-22T06:24:38.000Z","dependencies_parsed_at":"2024-09-17T02:10:41.723Z","dependency_job_id":"3d2849df-7f47-460b-b3c7-0dc1e71c40e7","html_url":"https://github.com/tiesen243/create-yuki-turbo","commit_stats":null,"previous_names":["tiesen243/create-yuki-repo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fcreate-yuki-turbo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fcreate-yuki-turbo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fcreate-yuki-turbo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fcreate-yuki-turbo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiesen243","download_url":"https://codeload.github.com/tiesen243/create-yuki-turbo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240475230,"owners_count":19807292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","prisma","shadcn-ui","trpc","turborepo"],"created_at":"2024-11-10T07:13:24.938Z","updated_at":"2026-05-16T09:04:57.939Z","avatar_url":"https://github.com/tiesen243.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-yuki-turbo\n\n\u003e [!WARNING]\n\u003e This repository has been moved to [tiesen243/create-yuki-stack](https://github.com/tiesen243/create-yuki-stack)\n\n## Installation\n\n\u003e [!NOTE]\n\u003e\n\u003e Make sure to follow the system requirements specified in [`package.json#engines`](./package.json#L63) before proceeding.\n\nThere are two ways of initializing an app using the `create-yuki-turbo` starter. You can either use this repository as a template:\n\nClick the \"Use this template\" button on the top right of the repository,\n\nor use Turbo's CLI to init your project (use Bun as package manager):\n\n```bash\nbun create turbo@latest --example https://github.com/tiesen243/create-yuki-turbo\n```\n\n## About\n\nThis template is based on [create-t3-turbo](https://github.com/t3-oss/create-t3-turbo) by @t3-oss with some modifications to fit my personal preferences.\n\nIt uses [Turborepo](https://turborepo.org) and contains:\n\n```text\n.github\n  └─ workflows\n        └─ CI to check the monorepo: format, lint, and typecheck\napps\n  ├─ nextjs\n  |   ├─ Next.js 15\n  |   ├─ React 19\n  |   ├─ Tailwind CSS\n  |   └─ E2E Typesafe API Server \u0026 Client\n  ├─ react-router\n  |   ├─ React Router 7\n  |   ├─ React 19\n  |   ├─ Tailwind CSS\n  |   └─ E2E Typesafe API Server \u0026 Client\n  ├─ tanstack-start (COMING SOON)\n  |   ├─ TanStack Start 1\n  |   ├─ React 19\n  |   ├─ Tailwind CSS\n  |   └─ E2E Typesafe API Server \u0026 Client\n  └─ native\n      ├─ Expo 53 (EXPERIMENTAL)\n      ├─ React Native using React 19\n      └─ Typesafe API calls using tRPC\npackages\n  ├─ api\n  |   └─ tRPC v11 router definition\n  ├─ auth\n  |   └─ Authentication from scratch using arctic for OAuth.\n  ├─ db\n  |   └─ Typesafe db calls using Drizzle ORM\n  ├─ env\n  |   └─ Typesafe environment variables\n  ├─ ui\n  |   └─ Start of a UI package for the webapp using shadcn-ui\n  └─ validators\n      └─ Shared input validation schemas using zod\ntooling\n  ├─ eslint\n  |   └─ shared, fine-grained, eslint presets\n  ├─ prettier\n  |   └─ shared prettier configuration\n  └─ typescript\n      └─ shared tsconfig you can extend from\n```\n\n\u003e In this template, we use `@yuki` as a placeholder for package names. As a user, you might want to replace it with your own organization or project name. You can use find-and-replace to change all the instances of `@yuki` to something like `@my-company` or `@project-name`.\n\n## Quick Start\n\n\u003e **Note**\n\u003e The [db](./packages/db) package is preconfigured to use Neon and is **edge-bound**. If you're using something else, make the necessary modifications to the [schema](./packages/db/src/schema) as well as the [client](./packages/db/src/index.ts). If you want to switch to non-edge database driver, remove `export const runtime = \"edge\";` [from all pages and api routes](https://github.com/t3-oss/create-t3-turbo/issues/634#issuecomment-1730240214).\n\nTo get it running, follow the steps below:\n\n### 1. Setup dependencies\n\n```bash\n# Install dependencies\nbun i\n\n# Configure environment variables\n# There is an `.env.example` in the root directory you can use for reference\ncp .env.example .env\n\n# Push the Drizzle schema to the database\nbun db:push\n```\n\n### 2. Configure Expo `dev`-script\n\n#### Use IOS Simulator\n\n1. Make sure you have XCode and XCommand Line Tools installed [as shown on expo docs](https://docs.expo.dev/workflow/ios-simulator).\n\n   \u003e **NOTE:** If you just installed XCode, or if you have updated it, you need to open the simulator manually once. Run `npx expo start` from `apps/native`, and then enter `I` to launch Expo Go. After the manual launch, you can run `bun dev` in the root directory.\n\n   ```diff\n   +  \"dev\": \"expo start --ios\",\n   ```\n\n2. Run `bun dev` at the project root folder.\n\n#### Use Android Emulator\n\n1. Install Android Studio tools [as shown on expo docs](https://docs.expo.dev/workflow/android-studio-emulator).\n\n2. Change the `dev` script at `apps/native/package.json` to open the Android emulator.\n\n   ```diff\n   +  \"dev\": \"expo start --android\",\n   ```\n\n3. Run `bun dev` at the project root folder.\n\n### 3. Configuring Auth to work with Expo\n\nIn order to get Auth to work with Expo, you must:\n\nThe [packages/auth](./packages/auth/src/core/auth.ts#L105) directory contains an OAuth proxy server. Deploy `nextjs` app and set the `AUTH_PROXY_URL` environment variable to the proxy's URL to enable OAuth for Expo apps in both preview deployments and development environments.\n\nThis proxy server approach forwards authentication requests from Next.js apps to handle the OAuth flow, then redirects back to your app. The advantage is maintaining a stable, publicly accessible URL that works regardless of deployment changes or local port assignments (e.g., if your Next.js app runs on port 3001 instead of 3000, authentication still functions without reconfiguring OAuth providers).\n\n### 4a. When it's time to add a new UI component\n\nRun the `ui-add` script to add a new UI component using the interactive `shadcn/ui` CLI:\n\n```bash\nbun ui-add\n```\n\nWhen the component(s) has been installed, you should be good to go and start using it in your app.\n\n### 4b. When it's time to add a new package\n\nTo add a new package, simply run `bun 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).\n\nThe 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.\n\n### 4c. When it's time to update the dependencies\n\nTo update the dependencies, run the following command:\n\n```bash\nbun bump-deps\n```\n\nThis will update all the dependencies in the monorepos to the latest version.\n\n## Deployment\n\n### Web\n\nLet's deploy the Next.js application to [Vercel](https://vercel.com). If you've never deployed a Turborepo app there, don't worry, the steps are quite straightforward. You can also read the [official Turborepo guide](https://vercel.com/docs/concepts/monorepos/turborepo) on deploying to Vercel.\n\n1. Create a new project on Vercel, select the `apps/nextjs` or `apps/react-router` or `apps/tanstack-start` folder as the root directory. Vercel's zero-config system should handle all configurations for you.\n\n2. Add your environment variable. See `.env.example` for required variables.\n\n3. Done! Your app should successfully deploy.\n\n### Native\n\nDeploying your Expo application works slightly differently compared to Next.js on the web. Instead of \"deploying\" your app online, you need to submit production builds of your app to app stores, like [Apple App Store](https://www.apple.com/app-store) and [Google Play](https://play.google.com/store/apps). You can read the full [guide to distributing your app](https://docs.expo.dev/distribution/introduction), including best practices, in the Expo docs.\n\n1. Let's start by setting up [EAS Build](https://docs.expo.dev/build/introduction), which is short for Expo Application Services. The build service helps you create builds of your app, without requiring a full native development setup. The commands below are a summary of [Creating your first build](https://docs.expo.dev/build/setup).\n\n   ```bash\n   # Install the EAS CLI\n   bun add -g eas-cli\n\n   # Log in with your Expo account\n   eas login\n\n   # Configure your Expo app\n   cd apps/native\n   eas build:configure\n   ```\n\n2. After the initial setup, you can create your first build. You can build for Android and iOS platforms and use different [`eas.json` build profiles](https://docs.expo.dev/build-reference/eas-json) to create production builds or development, or test builds. Let's make a production build for iOS.\n3. After the initial setup, you can create your first build. You can build for Android and iOS platforms and use different [`eas.json` build profiles](https://docs.expo.dev/build-reference/eas-json) to create production builds or development, or test builds. Let's make a production build for iOS.\n\n   ```bash\n   eas build --platform ios --profile production\n   ```\n\n   \u003e If you don't specify the `--profile` flag, EAS uses the `production` profile by default.\n\n4. Now that you have your first production build, you can submit this to the stores. [EAS Submit](https://docs.expo.dev/submit/introduction) can help you send the build to the stores.\n\n   ```bash\n   eas submit --platform ios --latest\n   ```\n\n   \u003e You can also combine build and submit in a single command, using `eas build ... --auto-submit`.\n\n5. Before you can get your app in the hands of your users, you'll have to provide additional information to the app stores. This includes screenshots, app information, privacy policies, etc. _While still in preview_, [EAS Metadata](https://docs.expo.dev/eas/metadata) can help you with most of this information.\n\n6. Once everything is approved, your users can finally enjoy your app. Let's say you spotted a small typo; you'll have to create a new build, submit it to the stores, and wait for approval before you can resolve this issue. In these cases, you can use EAS Update to quickly send a small bugfix to your users without going through this long process. Let's start by setting up EAS Update.\n\n   The steps below summarize the [Getting started with EAS Update](https://docs.expo.dev/eas-update/getting-started/#configure-your-project) guide.\n\n   ```bash\n   # Add the `expo-updates` library to your Expo app\n   cd apps/native\n   bun expo install expo-updates\n\n   # Configure EAS Update\n   eas update:configure\n   ```\n\n7. Before we can send out updates to your app, you have to create a new build and submit it to the app stores. For every change that includes native APIs, you have to rebuild the app and submit the update to the app stores. See steps 2 and 3.\n\n8. Now that everything is ready for updates, let's create a new update for `production` builds. With the `--auto` flag, EAS Update uses your current git branch name and commit message for this update. See [How EAS Update works](https://docs.expo.dev/eas-update/how-eas-update-works/#publishing-an-update) for more information.\n\n   ```bash\n   cd apps/native\n   eas update --auto\n   ```\n\n   \u003e Your OTA (Over The Air) updates must always follow the app store's rules. You can't change your app's primary functionality without getting app store approval. But this is a fast way to update your app for minor changes and bug fixes.\n\n9. Done! Now that you have created your production build, submitted it to the stores, and installed EAS Update, you are ready for anything!\n\n## References\n\nThe stack originates from [create-t3-turbo](https://github.com/t3-oss/create-t3-turbo)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiesen243%2Fcreate-yuki-turbo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiesen243%2Fcreate-yuki-turbo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiesen243%2Fcreate-yuki-turbo/lists"}