Database
Launch Express uses Prisma ORM to interact with the database. Prisma is a modern database toolkit that makes it easy to interact with databases in Node.js and TypeScript.
Launch Express supports the following database providers:
PostgreSQL Prisma Schema
Launch Express provides you with a prisma.schema file suitable for PostgreSQL. If you want to use PostgreSQL, you don’t need to make any changes.
To learn more about the Prisma usage with PostgreSQL check the official documentation.
- Update your DATABASE_URL in the .env file
- Generate Prisma Client:
- Run migrations:
Example Usage
To interact with the database, you can use the Prisma Client. The Prisma Client is an auto-generated and type-safe query builder that’s tailored to your database schema.
Database Management
Development Commands
Production Commands
Database Hosting
I recommend using PostgreSQL as the database provider for your application, because it is a powerful, open-source object-relational database system.
You can create a free PostgreSQL database by using Neon, Supabase or go with MongoDB and MongoDB Atlas.
But you can also use other service providers like:
Was this page helpful?