Skip to content

hackclub/DummiesV2

Repository files navigation

instructions to setup: run npm install update the DATABASE_URL And staff at .env run npx drizzle-kit push

update src/lib/server/db/index.ts to import { config } from 'dotenv';

// Load environment variables from .env file config();

import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; import * as schema from './schema';

// The DB module expects a DATABASE_URL. For local development you can set LOCAL_DATABASE_URL // and the server will only use it when it points to localhost. See .env.example for placeholders.

===

set an admin with psql 'url' -c "UPDATE "user" SET "isAdmin" = true WHERE "slackId" = 'U091DE0M4NB';"

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •