Skip to content

A simple project using shadcn-svelte and better-sqlite3, with SvelteKit.

Notifications You must be signed in to change notification settings

henrybastos/shadcn-sqlite3

Repository files navigation

Running the project

To run the project you must first install the dependencies with:

npm install
# or
pnpm install

And then run the local server with:

npm run dev
# or
pnpm dev

Setting the database file path

You must specify the path to the database file in the .env file as DB_PATH=db/my_file.db.

API routes

POST /api/create-table

WIP...

POST /api/create-user

Creates a user at the Users table. It requires

key type
ID INT
NAME VARCHAR(255)
AGE INT

GET /api/get-users

WIP...

GET /api/clear-db

WIP...

About

A simple project using shadcn-svelte and better-sqlite3, with SvelteKit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published