examples/with-nextjs-elysia/README.md
This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed.
Run the following command:
npx create-turbo@latest -e with-nextjs-elysia
This Turborepo includes the following packages & apps:
.
├── apps
│ └── web # Next.js app (https://nextjs.org) with embedded Elysia server
└── packages
├── @repo/contract # Shared TypeBox contracts and Drizzle ORM schemas
├── @repo/typescript-config # `tsconfig.json`s used throughout the monorepo
└── @repo/ui # Shareable stub React component library.
Each package and application are mostly written in TypeScript.
This Turborepo has some additional tools already set for you:
This Turborepo already configured useful commands for all your apps and packages.
# Will build all the app & packages with the supported `build` script.
bun run build
# Will run the development server for all the app & packages with the supported `dev` script.
bun run dev
# Will lint all the app & packages with the supported `lint` script.
bun run lint
[!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:
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
npx turbo link
Learn more about the power of Turborepo: