This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
ClerkJS
https://clerk.com/
https://dashboard.clerk.com/apps/app_2gNm3e8D79Pf0qSqeQl9EFO2Dsw/instances/ins_2gNm3rUxsr2SNEX54eIaH5U7Rc3
mysql db hosted on PlanetScale
https://planetscale.com/ https://planetscale.com/features/cli
brew install planetscale/tap/pscale
pscale auth login
pscale connect entheogen dev --port 3309
ORM for db https://www.prisma.io/ https://www.prisma.io/docs/orm/reference/prisma-cli-reference
npx prisma init
Finally, once you are ready to push your schema to PlanetScale, run prisma db push against your PlanetScale database to update the schema in your database:
npx prisma db push
npx prisma studio
Examples
Set up a new Prisma project
$ prisma init
Generate artifacts (e.g. Prisma Client)
$ prisma generate
Browse your data
$ prisma studio
Create migrations from your Prisma schema, apply them to the database, generate artifacts (e.g. Prisma Client)
$ prisma migrate dev
Pull the schema from an existing database, updating the Prisma schema
$ prisma db pull
Push the Prisma schema state to the database
$ prisma db push
Validate your Prisma schema
$ prisma validate
Format your Prisma schema
$ prisma format
Display Prisma version info
$ prisma version
Display Prisma debug info
$ prisma debug
https://platform.openai.com/docs/overview https://platform.openai.com/docs/api-reference
json schema library // structured output chain
js library for interfacing with OpenAI https://js.langchain.com/v0.1/docs/get_started/introduction/
in memory vector db
https://vitejs.dev/config/ https://vitest.dev/guide/mocking.html
a majority of this code follows the following course on frontend masters https://frontendmasters.com/courses/fullstack-app-next-v3/ https://github.com/Hendrixer/fullstack-ai-nextjs/tree/main
updates two apps that I made in bootcamp: https://github.com/avertrees/entheogen-frontend https://github.com/avertrees/entheogen-backend