An open API service indexing awesome lists of open source software.

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

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
```