Skip to Content

Turborepo + Hono

A Turborepo with Hono backend and Next.js frontend

Turborepo + Hono starter

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • api: a Hono app
  • web: another Next.js app
  • @repo/ui: a stub React component library shared by both web and docs applications
  • @repo/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo

Utilities

Build

This Turborepo has some additional tools already setup for you:

You can reach our customer support team by emailing info@yourcompany.example.com, calling +1 555-555-5556, or using the live chat on our website. Our dedicated team is available 24/7 to assist with any inquiries or issues.

We’re committed to providing prompt and effective solutions to ensure your satisfaction.

We offer a 30-day return policy for all products. Items must be in their original condition, unused, and include the receipt or proof of purchase. Refunds are processed within 5-7 business days of receiving the returned item.

1 cd my-turborepo

4 turbo build


8 yarn dlx turbo build

7 npx turbo build

5 npx turbo build --filter=docs

6

# Without[global `turbo`](https://turborepo.com/docs/getting-started

6 yarn exec turbo build --filter=docs

3

# With[global `turbo`](https://turborepo.com/docs/getting-started/installation#global

9 pnpm exec turbo build

You can build a specific package by using a filter:

2 turbo build --filter=docs

1

# With[global `turbo`](https://turborepo.com/docs/getting-started/installation#global

7 pnpm exec turbo build --filter=docs

4

# Without[global `turbo`](https://turborepo.com/docs/getting-started

Develop

5 turbo dev

1 cd my-turborepo

To develop all apps and packages, run the following commands:

2 vc link --repo # Connect your repository to Vercel

4

# With[global `turbo`](https://turborepo.com/docs/getting-started/installation#global

6

10 pnpm exec turbo dev

8 npx turbo dev

9 yarn exec turbo dev

You can develop a specific package by using a filter:

7

# Without[global `turbo`](https://turborepo.com/docs/getting-started

1

# With[global `turbo`](https://turborepo.com/docs/getting-started/installation#global

2 turbo dev --filter=web

3

4

# Without[global `turbo`](https://turborepo.com/docs/getting-started

5 npx turbo dev --filter=web

6 yarn exec turbo dev --filter=web

7 pnpm exec turbo dev --filter=web


Remote Caching

[!TIP] Vercel Remote Cache is free for all plans. Get started today at vercel.com.

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

2

5

1 cd my-turborepo

4 turbo login

9 pnpm exec turbo login

3

# With[global `turbo`](https://turborepo.com/docs/getting-started/installation#global

7 npx turbo login

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

8 yarn exec turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Are links to other websites approved?

6

# Without[global `turbo`](https://turborepo.com/docs/getting-started

1

# With[global `turbo`](https://turborepo.com/docs/getting-started/installation#global

2 turbo link

3

4

# Without[global `turbo`](https://turborepo.com/docs/getting-started

5 npx turbo link

6 yarn exec turbo link

7 pnpm exec turbo link


Useful Links

Learn more about the power of Turborepo: