- 📦 Monorepo structure with Turborepo for efficient build system and caching
- ⚡ Next.js for fast, server-side rendered React applications
- 📚 Nextra for easy-to-create documentation sites
- 🎨 shadcn/ui for beautiful, customizable UI components
- 🐰 Bun as a fast, all-in-one JavaScript runtime
- 🌿 Biome for fast, opinionated linting and formatting
- 🔄 Automated dependency management with Dependabot
- 🚀 CI/CD setup with GitHub Actions
- 🧑🔧 Clerk for authentication
- 💽 Supabase for database and real-time data
# Clone the repository
gh repo clone with-context-engine/contech-hackathon
# Navigate to the project directory
cd contech-hackathon
# Install dependencies
bun install
# Start development server
bun run dev
bun ui:add:component <component-name>
This works just like the add command in the
shadcn/ui
CLI. 🎨
graph TD
A[Turborepo] --> B[Apps]
A --> C[Packages]
B --> D[@repo/docs]
B --> E[@repo/web]
C --> G[@repo/ui]
C --> H[@repo/utils]
C --> I[@repo/tsconfig]
App/Package | Description |
---|---|
@repo/docs |
Documentation site powered by Nextra 3 alpha 📖 |
@repo/web |
Main Next.js web application 🌐 |
@repo/ui |
Core React components and design system shared by both web and docs applications (powered by shadcn/ui) 🎨 |
@repo/utils |
Shared React utilities 🛠️ |
@repo/tsconfig |
Shared tsconfig.json configurations 🛡️ |
Each package and app is 100% TypeScript. 💪
Click to expand
This Turborepo has some additional tools already set up for you:
- TypeScript for static type checking ✅
- Biome for code linting, formatting, and fixing 🌿
- Changesets for managing versioning, changelogs, and publishing 📝
bun build
- Build all apps and packagesbun dev
- Develop all apps and packagesbun dev:ui
- Develop all apps and packages and display the output in Turbo's new experimental UIbun lint
- Lint and format all packagesbun lint:fix
- Lint, format, and fix all packagesbun changeset
- Generate a changeset 🧑🔧 - WIPbun clean
- Clean up allnode_modules
anddist
folders (runs each package's clean script)bun ui:add:component
- Add a shadcn/ui component to the@repo/ui
package
Turborepo offers a simple command to add new apps or packages to the monorepo. To add a new app, run the following command:
bun turbo gen workspace [--name <app-name>]
You will be prompted to choose the name and workspace type (app or package) of the new app and which app or package to copy.
[! NOTE] Remember to run
bun install
after copying an app.⚠️
This Turborepo uses GitHub Actions for CI. 🤖
It comes preconfigured with the following workflow that runs on every push or pull request to the main
branch:
- Setup: Checks out the code and sets up Bun.
- Install: Installs all dependencies using Bun.
- Build: Builds all apps and packages in the monorepo.
- Lint: Performs linting and formatting checks using Biome.
This template includes some useful automation tools:
Keeps dependencies up-to-date automatically with daily checks and update rules.
Can automatically merges patch updates from Dependabot to reduce manual work.
For the auto-merge workflow:
- Go to your repository's Settings > Actions > General.
- Under "Workflow permissions", select "Read and write permissions".
- Check "Allow GitHub Actions to create and approve pull requests".
- Save the changes.
- Optionally, create a Personal Access Token (PAT) with
repo
scope and add it as a repository secret namedGITHUB_TOKEN
for enhanced security.
Maintains an up-to-date list of contributors in your README.
- Dependabot is active out-of-the-box. Review and adjust the config as needed.
- Ensure proper permissions for the auto-merge workflow.
- To read more about the contributors list, see the contributors-readme-action README.
🧑🔧 WIP
For more information, refer to the official Changesets documentation.
This Turborepo is set up for easy deployment of its various applications.
The docs
and web
apps can be deployed to Vercel without any additional configuration. This allows for quick and easy deployment of your Next.js applications.
You can view the test deployments for these apps:
apps/web
: https://turborepo-shadcn-nextjs-web.vercel.app/apps/docs
: https://turborepo-shadcn-nextjs-docs.vercel.app/
Gordon Mickel |