An application that allows users to create pools, add members, pick atheletes, and win the pool.
TypeScript Next.js GraphQL Prisma Postgresql
This app has two database environments: local and production. Each environment has it's own database but specific scripts are yet setup to manage each separately without swapping out your DATABASE_URL.
To work in development mode:
- Make sure you
DATABASE_URLis your local database. - Update schema.prisma file with your changes.
- Run
npx prisma db pushto send the changes to the local database - Run
npx prisma generatefor the client to see the changes.
To match your dev work in production:
- Update the
DATABASE_URLin your .env file to the production database. - Run
npx prisma migrate devand name the migration for your work. This will push your changes to the production databse. - Switch the
DATABASE_URLin your .env back to the local database!
Deploy directly through the CLI to Vercel