- Database PostgreSQL or SQLite. Edit /Database.ts
For Postgres
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:
import { SqliteProvider } from "https://deno.land/x/[email protected]/mod.ts";
const db = new SqliteProvider("db.sqlite", "tablename");
Start the project:
deno task start