Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayungavis/turborepo-nextjs-tailwind-trpc
The boilerplate Turborepo + Next.js + Tailwind + tRPC provides a starting point for building modern, fast, and responsive web applications.
https://github.com/ayungavis/turborepo-nextjs-tailwind-trpc
nextjs prisma tailwindcss trpc turborepo
Last synced: 3 months ago
JSON representation
The boilerplate Turborepo + Next.js + Tailwind + tRPC provides a starting point for building modern, fast, and responsive web applications.
- Host: GitHub
- URL: https://github.com/ayungavis/turborepo-nextjs-tailwind-trpc
- Owner: ayungavis
- License: mit
- Created: 2023-03-29T21:53:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-23T08:38:11.000Z (10 months ago)
- Last Synced: 2024-05-16T01:37:22.830Z (6 months ago)
- Topics: nextjs, prisma, tailwindcss, trpc, turborepo
- Language: TypeScript
- Homepage: https://turborepo-nextjs-tailwind-trpc-app.vercel.app/
- Size: 929 KB
- Stars: 41
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Turborepo NextJS + Expo Starter Kit
## About
It uses [Turborepo](https://turbo.build/repo) to manage the monorepo. And contains:
```
.github
└─ workflows
└─ CI with pnpm cache setup
.vscode
└─ Recommended extensions and settings for VSCode users
apps
├─ landing
| ├─ Next.js 14
| ├─ Radix UI
| └─ Tailwind CSS
└─ dashboard
├─ Next.js 14
├─ Radix UI
└─ Tailwind CSS
packages
├─ design-system
| └─ Reusable components for the apps
| ├─ Radix UI
| └─ Tailwind CSS
└─ utils
└─ Utility functions
configs
├─ eslint
├─ github
├─ prettier
├─ tailwind
└─ typescript
```## Getting Started
To get it running, follow the steps below:
##### Setup dependencies
```bash
pnpm install
```##### Start the apps
```bash
pnpm dev
```##### Build the apps
```bash
pnpm build
```### Adding a new package
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.
## Deployment
#### Deploy to Vercel
Let's deploy the Next.js application to [Vercel](https://vercel.com/). If you have ever deployed a Turborepo app there, the steps are quite straightforward. You can also read the [official Turborepo guide](https://vercel.com/docs/concepts/monorepos/turborepo) on deploying to Vercel.
1. Create a new project on Vercel, select the `apps/landing` or `apps/dashboard` folder as the root directory and apply the following build settings:
> The install command filters out the expo package and saves a few second (and cache size) of dependency installation. The build command makes us build the application using Turbo.
2. Done! Your app should successfully deploy.
## References
- [Turborepo](https://turbo.build/repo)
- [T3-OSS](https://github.com/t3-oss/create-t3-turbo)## License
MIT License
© 2023 Wahyu Kurniawan