This template demonstrates how to use WunderGraph with Next.js 13 app directory with PostgreSQL, Tailwind CSS and Auth0
.env.example
file to .env
Domain
, Client ID
and Client Secret
to the clipboard.env
filepostgresql://user:password@server-address/database-name
src/seed/seed.ts
file with an social email address (gmail, etc.)npm install && npm run start
After a while, a new browser tab will open, and you can start exploring the application. If no tab is open, navigate to http://localhost:3000.
You can add more Operations (e.g. Queries or Mutations) by adding more "*.graphql" files to the directory ./wundergraph/operations
.
Each file becomes an Operation. The Operation name is not relevant, the file name is.
npx prisma migrate dev --name <name>
Add information here...
If you are having trouble with WG after updating the postgres database scheme, delete the following folders:
.wundergraph/cache
.wundergraph/generated
src/components/generated
test