OneSignalDevelopers / ngosi

Share your slides with a QR code
https://ngosi.io
MIT License
9 stars 5 forks source link

Split QR generation from preso form #12

Closed iAmWillShepherd closed 3 years ago

iAmWillShepherd commented 3 years ago

This PR adds Prisma for data persistence and implements a model to store data in a database.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/codeincolor/ngosi/DAnAFxdRB2pvVh3ooeShrbyQpU27
✅ Preview: https://ngosi-git-qr-workflow-codeincolor.vercel.app

iAmWillShepherd commented 3 years ago

I installed Prisma, but I'm getting a weird error, and it seems like I'm the only person on Earth who receives it. That or Google search has somehow become even more useless 🤷🏾

╭─iamwill@zues ~/code/codeincolor/ngosi/prisma ‹qr-workflow*› 
╰─$ yarn db:sync:schema
yarn run v1.22.17
$ prisma db push --force-reset
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "ngosi", schema "public" at "localhost:5432"

The PostgreSQL database "ngosi" from "localhost:5432" was successfully reset.

🚀  Your database is now in sync with your schema. Done in 37ms

Running generate... (Use --skip-generate to skip the generators)
Error: Generator at postgresql could not start:

/bin/sh: postgresql: command not found

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Note that the database was created, but I cannot generate the Prisma client, which is a hard blocker: I need this client to interact with the database. I will look into this a bit more tomorrow.

iAmWillShepherd commented 3 years ago

8c9965e fixes my Prisma issue.