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.