mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-03-15 18:01:06 +00:00
b8b3c62729ecb300caf784b244cccddf2d7e16bd
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 6m27s
bknd + Tanstack Start Example
This is a minimal example to shows how to integrate bknd with Tanstack Start.
Setup
bun install
bun run dev
How it works
bknd.config.ts- bknd configuration with database connection, schema, and seed datasrc/routes/api.$.ts- Handles/api/*requests for bkndsrc/routes/index.tsx- UsinggetApp()to fetch data in loadersrc/routes/ssr.tsx- Server Side example withgetApp()to fetch data on server
API Endpoints
GET /admin- for Admin DashboardGET /api/data/entity/todos- List todos (requires auth)POST /api/auth/password/login- Login
Test Credentials
- Email:
test@bknd.io - Password:
12345678
Description
Languages
TypeScript
93.9%
CSS
3.1%
Dockerfile
3%