setup bunsqlite, drizzle
This commit is contained in:
parent
549e26f70f
commit
c7eb56c9ec
7 changed files with 226 additions and 2 deletions
|
|
@ -1,8 +1,12 @@
|
|||
import { drizzle } from "drizzle-orm/bun-sqlite";
|
||||
import express from "express";
|
||||
import path from "path";
|
||||
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
const db = drizzle(process.env.DB_FILE_NAME!);
|
||||
|
||||
app.use("/static", express.static(path.join(__dirname, "public")));
|
||||
|
||||
// landing page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue