Skip to content

cobuildlab/prisma-example

Repository files navigation

cobuildlab backend

Set Environment Variables (create .env file)

DATABASE_URL=postgresql://<user/pass>@localhost:5432/<dbname>?schema=public
AUTH0_AUDIENCE=https://cobuildlabcorp.com
AUTH0_ISSUER_BASE_URL=https://cobuildlab-main.us.auth0.com/
DEBUG=true
AWS_REGION=us-east-1
AWS_CLOUDWATCH_ENABLE=true
UPLOADCARE_PUBLIC_KEY=
UPLOADCARE_SECRET_KEY=
PORT=4000

Create db schema and run migrations

npx prisma migrate dev
npm run prisma-generate

Create Test Data

./node_modules/.bin/ts-node src/cli.ts -d

Run Backend

npm run dev

Delete all data

./node_modules/.bin/ts-node src/cli.ts -d

Dependencies

Install postgress database locally and set DATABASE_URL accordingly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages