8000 GitHub - kirujs/kiru-node-fullstack-quickstart: Full-stack template for Kiru with Hono, Better-Auth, Drizzle, Vike, and Telefunc
[go: up one dir, main page]

Skip to content

kirujs/kiru-node-fullstack-quickstart

Repository files navigation

Contents

Drizzle

First, 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

Better Auth

Better Auth is a library for authentication and authorization. It's already wired up with the app, so you can use it out of the box - just set up the AUTH_SECRET & BASE_URL environment variables.

GitHub OAuth is also set up out of the box - just create a GitHub app and set up the GITHUB_CLIENT_ID & GITHUB_CLIENT_SECRET environment variables.

Kiru+Vike

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

/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.

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.

About

Full-stack template for Kiru with Hono, Better-Auth, Drizzle, Vike, and Telefunc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0