1. 3
    Set up Planetscale Main and Dev Branches and Create Tables through Prisma
    5m 15s

Set up Planetscale Main and Dev Branches and Create Tables through Prisma

InstructorBen Patton

Share this video with your friends

Send Tweet

Next up is creating a Planetscale database for our application. Planetscale works a lot like GitHub in that it uses branches for development and production.

We will create a new database and then create a dev branch to separate the data we create in dev from what is in production.

When the database is created, we'll set the DATABASE_URL in our .env file for the main and dev branches.

The last thing we will need to do is push the prisma schema to planetscale so that it can create the necessary tables for our application to function.

Explore the prisma schema and tables created to get more familiar with what the application is doing.