Database Setup with PlanetScale and Prisma ORM
Learn how to set up and configure PlanetScale and Prisma ORM for your ProtonStack application.
ProtonStack seamlessly integrates with PlanetScale and Prisma ORM to provide a powerful and scalable database solution for your application. Follow these steps to set up and configure your database.
Prerequisites
Before starting the database setup process, ensure you have:
- A PlanetScale account: Sign up for PlanetScale.
- Node.js and npm installed on your machine.
Configuration
-
PlanetScale Setup:
- Create a new database on PlanetScale, and note the connection details.
- Retrieve the database URL provided by PlanetScale.
-
Prisma ORM Configuration:
- Update the DATABASE_URL in .env with the PlanetScale database URL.
-
Migration Process:
- Run the Prisma migration commands to apply database changes.
npx prisma db push
By following these steps, you've successfully set up and configured PlanetScale and Prisma ORM for your ProtonStack application. You can now leverage the power of a scalable database solution in your development.