Database
Prisma will allow you to query the database with ease using Javascript/Typescript
You can use any SQL database but I recommend Postgres.
Fell free to use any provider you like:
Your own server!
Setup
Get your URI (a string starting with "postgres:")
Paste it to your .env:
.env
Prefer a Pooling URL (PORT 6543) for Serverless environnements.
If you don't have a pooling URL, fill the 2 lines with your standard URI (PORT 5432)
Database Init
Simply run these commands:
Terminal
Database Queries
Prisma greatly simplify the database queries, here's an example:
Learn more by checking the official Prisma documentation. 📖
Last updated