Lets look at what is PlanetScale and how to Setup PlanetScale using a nextjs application. We will use the Github repo, will use the PlanetScale CLI too.
How can we connect to PlanetScale database? I will walkthrough using PlanetScale, the PlanetScale web UI, nextjs code, Scoop and PlanetScale CLI, Prisma, Github, and deploying the data, database code to the cloud.
And finally I will quickly deploy PlanetScale to Vercel, and quickly deploy PlanetScale to Netlify.
Some URL's
https://github.com/planetscale/cli#in... for planet scale CLI
https://github.com/planetscale/nextjs... the starter code and commands needed
https://vitess.io/
https://vitess.io/docs/18.0/overview/...
https://vercel.com/integrations/plane...
https://planetscale.com
https://planetscale.com/pricing
vercel.com cloud hosting
netlify.com cloud hosting
Timecodes:
00:00 Intro
01:00 command lines and sample screens
02:40 Review PlanetScale Features
05:11 vitess.io
06:08 Pricing page
06:45 Github Repo
07:57 PlanetScale CLI
08:36 Scoop install
10:45 More installations
12:20 Create pscale database
14:50 Open VScode
15:40 Set up the .env file
17:20 setting up URL for database
17:50 Run Prisma and more
20:50 Test db and npm run dev
21:25 Run it locally
22:15 Deploy on vercel
24:35 Deploy to netlify