Generated with vike.dev/new (version 433) using this command:
bun create vike@latest --react --tailwindcss --daisyui --authjs --telefunc --hono --drizzle --eslintFirst, ensure that DATABASE_URL is configured in .env file, then create the database:
pnpm drizzle:generate # a script that executes drizzle-kit generate.
pnpm drizzle:migrate # a script that executes drizzle-kit migrate.Note
The drizzle-kit generate command is used to generate SQL migration files based on your Drizzle schema.
The drizzle-kit migrate command is used to apply the generated migrations to your database.
Read more on Drizzle ORM documentation
This app is ready to start. It's powered by Vike and React.
Such + files are the interface between Vike and your code. It defines:
- A default
<Layout>component (that wraps your<Page>components). - A default
title. - Global
<head>tags.
Vike's built-in router lets you choose between:
- Filesystem Routing (the URL of a page is determined based on where its
+Page.jsxfile is located on the filesystem) - Route Strings
- Route Functions
The error page which is rendered when errors occur.
The onPageTransitionStart() hook, together with onPageTransitionEnd(), enables you to implement page transition animations.
SSR is enabled by default. You can disable it for all your pages or only for some pages.
You can enable/disable HTML streaming for all your pages, or only for some pages while still using it for others.