- TypeScript
- Tailwind for CSS styling
- Planetscale for data persistence
- Prisma for ORM
- NextAuth for wallet authentication via WAGMI / SIWE
- Mux for video streaming and thumbnail generation
- Mux Player for video playback
I'm a cheapskate, everything will hopefully move to IPFS or Arweave. But ain't got time fo dat now.
First, make sure you have mysql-client
installed locally so you can take full advantage of the pscale
CLI tool down the road.
brew install mysql-client
Next, install the Planetscale CLI. Again, on MacOS, this command will do the trick:
brew install planetscale/tap/pscale
Next, authorize the Planetscale CLI with your newly created account by running:
pscale auth
Create a new database in your Planetscale account.
pscale database create `your db`
pscale branch create `your-db` `you-new-branch`
# after a few moments, close and reopen db proxy to the new branch
pscale connect your-db your-new-branch --port 3309
# change your schema in the prisma/schema.prisma file... then,
npx prisma generate
npx prisma db push
# deploy when ready
pscale deploy-request your-db my-new-branch
# shipit
pscale deploy-request deploy your-db 1
npx prisma studio
Note: Removed db schema for now;