├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── next.config.js ├── package.json ├── postcss.config.js ├── prettier.config.js ├── prisma └── schema.prisma ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── ThemeProvider.tsx │ ├── api │ │ ├── chat │ │ │ └── route.ts │ │ └── notes │ │ │ └── route.ts │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── notes │ │ ├── NavBar.tsx │ │ ├── layout.tsx │ │ └── page.tsx │ ├── page.tsx │ ├── sign-in │ │ └── [[...sign-in]] │ │ │ └── page.tsx │ └── sign-up │ │ └── [[...sign-up]] │ │ └── page.tsx ├── assets │ └── logo.png ├── components │ ├── AIChatBox.tsx │ ├── AIChatButton.tsx │ ├── AddEditNoteDialog.tsx │ ├── Note.tsx │ ├── ThemeToggleButton.tsx │ └── ui │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── dialog.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── loading-button.tsx │ │ └── textarea.tsx ├── lib │ ├── db │ │ ├── pinecone.ts │ │ └── prisma.ts │ ├── openai.ts │ ├── utils.ts │ └── validation │ │ └── note.ts └── middleware.ts ├── tailwind.config.js └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["next/core-web-vitals", "prettier"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/components.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/prettier.config.js -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/ThemeProvider.tsx -------------------------------------------------------------------------------- /src/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/api/chat/route.ts -------------------------------------------------------------------------------- /src/app/api/notes/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/api/notes/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/notes/NavBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/notes/NavBar.tsx -------------------------------------------------------------------------------- /src/app/notes/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/notes/layout.tsx -------------------------------------------------------------------------------- /src/app/notes/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/notes/page.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/sign-in/[[...sign-in]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/sign-in/[[...sign-in]]/page.tsx -------------------------------------------------------------------------------- /src/app/sign-up/[[...sign-up]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/app/sign-up/[[...sign-up]]/page.tsx -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/components/AIChatBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/AIChatBox.tsx -------------------------------------------------------------------------------- /src/components/AIChatButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/AIChatButton.tsx -------------------------------------------------------------------------------- /src/components/AddEditNoteDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/AddEditNoteDialog.tsx -------------------------------------------------------------------------------- /src/components/Note.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/Note.tsx -------------------------------------------------------------------------------- /src/components/ThemeToggleButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ThemeToggleButton.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/loading-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/loading-button.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/lib/db/pinecone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/lib/db/pinecone.ts -------------------------------------------------------------------------------- /src/lib/db/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/lib/db/prisma.ts -------------------------------------------------------------------------------- /src/lib/openai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/lib/openai.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/lib/validation/note.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/lib/validation/note.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codinginflow/nextjs-ai-note-app/HEAD/tsconfig.json --------------------------------------------------------------------------------