Skip to content

Repository files navigation

Generated with Bati (version 278) using this command:

pnpm create bati --react --tailwindcss --shadcn-ui --authjs --trpc --hono --prisma --biome

Next steps

Prisma

Setup

Run the following command once:

pnpx prisma init

then follow instructions at https://www.prisma.io/docs/getting-started/quickstart#2-model-your-data-in-the-prisma-schema

About this app

This app is ready to start. It's powered by Vike and React.

/pages/+config.ts

Such + files are the interface between Vike and your code. It defines:

Routing

Vike's built-in router lets you choose between:

/pages/_error/+Page.jsx

The error page which is rendered when errors occur.

/pages/+onPageTransitionStart.ts and /pages/+onPageTransitionEnd.ts

The onPageTransitionStart() hook, together with onPageTransitionEnd(), enables you to implement page transition animations.

SSR

SSR is enabled by default. You can disable it for all your pages or only for some pages.

HTML Streaming

You can enable/disable HTML streaming for all your pages, or only for some pages while still using it for others.

shadcn/ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

Configuration

see shadcn/ui theming

Base Configuration can be found in components.json file.

Note

changes to the components.json file will not be reflected in existing components. Only new components will be affected.

Add Components to Your Project

Example: add a component to your project. pnpm shadcn add button

use the <Button /> component in your project: import { Button } from "@/components/ui/button";

more shadcn/ui components

About

Vike, React, shadcn/ui, tRPC, Hono, Prisma

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages