https://github.com/skorotkiewicz/deno-nip05-server
NIP-05 identity service
https://github.com/skorotkiewicz/deno-nip05-server
deno fresh nip05 nostr
Last synced: about 2 months ago
JSON representation
NIP-05 identity service
- Host: GitHub
- URL: https://github.com/skorotkiewicz/deno-nip05-server
- Owner: skorotkiewicz
- Created: 2023-05-26T22:04:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T02:57:50.000Z (almost 2 years ago)
- Last Synced: 2025-01-31T12:34:45.314Z (4 months ago)
- Topics: deno, fresh, nip05, nostr
- Language: TypeScript
- Homepage: https://z.sekor.eu.org
- Size: 19.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno Nip05 Server
## Usage
- Database PostgreSQL or SQLite. Edit /Database.ts
For Postgres
```ts
import { PostgresProvider } from "https://deno.land/x/[email protected]/mod.ts";const db = new PostgresProvider(
Deno.env.get("TABLENAME"),
Deno.env.get("USERNAME"),
Deno.env.get("DATABASE"),
Deno.env.get("HOSTNAME"),
Deno.env.get("PASSWORD"),
);await db.init();
```For SQLit:
```ts
import { SqliteProvider } from "https://deno.land/x/[email protected]/mod.ts";const db = new SqliteProvider("db.sqlite", "tablename");
```Start the project:
```
deno task start
```