fly auth signup
npm install
npm run dev
Install Postgres
Start Postgres
Create a database named carbonable_dapp
Connection with pgAdmin: localhost:5432 postgres/[password]
# Push database schema locally
npx prisma db push
# Seed database
npx ts-node prisma/seed.ts
# Create migration file
npx prisma migrate dev --name [name of the migration]
If your database gets messed up, you can always delete the prisma/dev.db file and run npx prisma db push again. Remember to also restart your dev server with npm run dev.
flyctl proxy 15432:5432 dev-carbonable-db.internal
Connection with pgAdmin: localhost:543154322 postgres/[password]