mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
feat/deno (#219)
* update bun version * fix module manager's em reference * add basic deno example * finalize
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { createRuntimeApp } from "bknd/adapter";
|
||||
|
||||
const app = await createRuntimeApp({
|
||||
connection: {
|
||||
url: "file:./data.db",
|
||||
},
|
||||
adminOptions: {
|
||||
// currently needs a hosted version of the static assets
|
||||
assetsPath: "https://cdn.bknd.io/bknd/static/0.15.0-rc.9/",
|
||||
},
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
Deno.serve(app.fetch);
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "bknd-deno-example",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"bknd": "file:../../app"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user