sorenbs / bridg-example-nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bridg - NextJS

Up and Running

This repository is for demonstration purposes. NextJS is not required to use Bridg. Bridg is compatible with any JS or TS frontend project.

  1. git clone https://github.com/JoeRoddy/bridg-examples-nextjs and cd into directory
  2. npm install
  3. npm run generate
  4. npm run dev

Learning

  • Open /src/pages/index.tsx to start modifying your query, your prisma client should work exactly as it would on the server
  • Open src/pages/api/bridg.ts to see how Bridg runs queries, and to change your database rules

About


Languages

Language:TypeScript 94.7%Language:JavaScript 5.3%