This is an app bootstrapped according to the init.tips stack, also known as the T3-Stack.
Create a database - this assumes you're using PostgreSQL.
createdb mydb
Edit the .env file and change the DATABASE_URL config to suit your local setup.
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
I use PostgreSQL, and my hosting provider (understandably) limits my connection pool to around 30, so I add a connection_limit parameter.
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public&connection_limit=25"
First, install the requirements
npm installThen migrate and seed the database
npx prisma migrate reset
Next, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
To learn more about the stack, take a look at the following resources:
- Next.js Documentation
- Prisma Documentation
- nextAuth Documentation
- Tailwind Documentation
- trpc Documentation
The initial exercise and data seed files were adapted from work done on the WGER project.