Skip to content

Commit

Permalink
add SQLite persistence for connections and identity
Browse files Browse the repository at this point in the history
  • Loading branch information
dankoster committed Oct 30, 2024
1 parent e44c06c commit 8bc5fa6
Show file tree
Hide file tree
Showing 6 changed files with 303 additions and 36 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
*.env*
*.db
*.db*
*.pem
*.crt
*.key

/notes
/cert
# Logs
logs
*.log
Expand Down
6 changes: 4 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"imports": {
"@db/sqlite": "jsr:@db/sqlite@^0.12.0",
"@std/assert": "jsr:@std/assert@^1.0.6",
"solid-js": "npm:solid-js@^1.8.23",
"solid-primitives/deep": "npm:@solid-primitives/deep@^0.2.9",
"d3": "npm:@types/d3"
},
"compilerOptions": {
"lib": [
"dom", "dom.iterable"
"dom", "dom.iterable", "deno.ns"
]
},
"tasks": {
"watch": "deno run --allow-read --allow-write --allow-ffi --allow-run --allow-sys --allow-env --env --node-modules-dir npm:vite build --watch",
"buildAndServe": "deno task build && deno task serve",
"serve": "deno run --allow-read=$PWD,'./dist',./cert,/etc/letsencrypt/live/chatmux.com --allow-env --env --unstable-kv --allow-net --watch ./server/server.ts",
"serve": "deno run --allow-read=$PWD,$HOME/Library/Caches/deno/plug,'./dist',./cert,/etc/letsencrypt/live/chatmux.com --allow-env --allow-ffi --env --allow-net --watch ./server/server.ts",
"vite": "deno run -A --allow-read=$PWD,'./dist',./cert,/etc/letsencrypt/live/chatmux.com --node-modules-dir npm:vite --host",
"build": "deno run -A --node-modules-dir npm:vite build",
"preview": "deno run -A --unstable --node-modules-dir npm:vite preview"
Expand Down
89 changes: 85 additions & 4 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit 8bc5fa6

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 8bc5fa6 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

Error: Failed to load SQLite3 Dynamic Library
    at https://jsr.io/@db/sqlite/0.12.0/src/ffi.ts:633:9

Please sign in to comment.