P
Prisma•9mo ago
Wolverine

How to Get Started with Prisma? ORM

Prisma
YouTube
How to create a PostgreSQL Database with Prisma's Data Platform
â—­ Version 2.28.0 Release notes: https://github.com/prisma/prisma/releases/tag/2.28.0 Prisma's 2.28.0 release includes some super convenient improvements to the project creation flow in the Prisma Data Platform. This allows you to provision a new PostgreSQL Database with Heroku, choose a template schema for common types of projects, and populate...
25 Replies
Wolverine
WolverineOP•9mo ago
In the tutorial, the guy picks the name for the project and picks a sample structure and goes from there. When I tried doing the same, all I was asked for was the name of the project and it was created. I am confused though because I did not get to pick Postgresql or the repo name or anything.
Wolverine
WolverineOP•9mo ago
No description
jonfanz
jonfanz•9mo ago
Yeah that guide is out of date. Are you looking to have a hosted PostgreSQL db?
Wolverine
WolverineOP•9mo ago
Yes
jonfanz
jonfanz•9mo ago
We're no longer offering that 🙂 I would recommend something like supabase or neon.tech for that
jonfanz
jonfanz•9mo ago
Supabase
Supabase | The Open Source Firebase Alternative
Build production-grade applications with a Postgres database, Authentication, instant APIs, Realtime, Functions, Storage and Vector embeddings. Start for free.
jonfanz
jonfanz•9mo ago
Neon
Neon — Serverless, Fault-Tolerant, Branchable Postgres
Postgres made for developers. Easy to Use, Scalable, Cost efficient solution for your next project.
Wolverine
WolverineOP•9mo ago
No description
Wolverine
WolverineOP•9mo ago
I mean this is all I am trying to do. In the video, he skipped the step for how to obtain this DATABASE_URL He said to use your own postgresql link, so I am not sure how to initialize my own db or get the link for this
jonfanz
jonfanz•9mo ago
hmmm well, if you're looking for just local testing, I would probably recommend using docker to run a postgresql db locally. Here's a how to guide from their site. https://www.docker.com/blog/how-to-use-the-postgres-docker-official-image/
Tyler Charboneau
Docker
How to Use the Postgres Docker Official Image | Docker
Check out our guide on how to use the Postgres Docker Official Image, including options for customization and data storage tips.
Wolverine
WolverineOP•9mo ago
This is the requirements for the project. Sorry for sending a long description, I am completely new to Prisma and connecting the web to the database. However I would like your help to be sure that I am on the right track. Based on the description, is hosting it locally sufficient? (Note: I am working in a group).
No description
Wolverine
WolverineOP•9mo ago
Also, postgres is not required. I could go based on Oracle or Sqlite instead if that is whats causing the problem.
jonfanz
jonfanz•9mo ago
Yes. The DB will be hosted locally on your machine, but it is a real database and is not JSON or local storage. If you're concerned I'd reach out to your instructor.
jonfanz
jonfanz•9mo ago
If you'd prefer, our Quickstart uses SQLite: https://www.prisma.io/docs/getting-started/quickstart
Prisma
Quickstart with TypeScript & SQLite
Get started with Prisma ORM in 5 minutes. You will learn how to send queries to a SQLite database in a plain TypeScript script using Prisma Client.
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Wolverine
WolverineOP•9mo ago
Yes this seems like the appropriate option, thanks a lot, Ill check it out! Based on the project description, I think Prisma is required
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Wolverine
WolverineOP•9mo ago
Oh neon is a database? Do you recommend Neon over SQLite then?
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Wolverine
WolverineOP•9mo ago
Okay, thanks Ill check the link Jon sent for SQLite then check neon out if this doesn't work Is Neon a relational DB?@EXILE
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Wolverine
WolverineOP•9mo ago
Sorry if tagging isn't allowed. I have followed the initial steps in this doc to setup prisma ORM. This was the generated DATABASE_URL, am I supposed to modify it or is everything setup now?
No description
Wolverine
WolverineOP•9mo ago
Because in the tutorial video he had his own personalized link. Mine doesn't look personalized, so I am not sure if Sqlite has been setup now or if I need to take further action?
No description
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
jonfanz
jonfanz•9mo ago
SQLite differs from other databases in that it's a database inside of a file. So, yes, that looks correct. Also, just give it a go and find out! If you follow the quickstart instructions you will end up with a functioning app 🙂
Want results from more Discord servers?
Add your server