This is a learning project
- How to use Prisma ORM with Next.js
- Neon Registration
- Alternatively use Supabase
- Generate Prisma Client:
npx prisma generate - Generate Prisma Migrations:
npx prisma migrate reset npx prisma migrate dev --name init
- tRPC integration with Next.js
- TanStack React Query
- Server Side prefetch
- How to expose tRPC to a standalone API
-
E2B Next.js Template Dockerfile
e2b template build --name rice-nextjs-test-2 --cmd "/compile_page.sh"
- Add tools to agent
- "terminal" - How to run commands in E2B sandbox: E2B commands
- "createOrUpdateFiles"
- "readFiles"
- Add a new prompt
- Add agent network & routers
- Create Message schema
- Create Fragment schema
- Save user input prompt as message
- Save Agent response as message & fragment
- Create Project schema
- Add Message relations
- Create new project on user prompt
- Preserve projectId in background jobs
- Add project page use useRouter
- Create Project View
- Create Messages Container
- Create Message Card
- Create Message Form
- Modify Messages
getManyProcedure
- Create Project Header
- Add Fragment selection
- Add Loading state
- Create Fragment View
-
Create Tabs in Project View
-
Create File Explorer
- Create File Explorer
- Create Tree View
- Create File path Breadcrumbs
-
- Home Page
- Create Home Page
- Create Projects List
- Create Project Form
-
- Theme
- Pick and apply new theme
-
- Authentication
- Create a Clerk account
- Setup Clerk
- Update .env
- Add ClerkProvider
- Add Sign in and Sign up screns
- Add middleware
- Create home layout Navbar
- Create User Control component
- Create protected tRPC procedures
- Update Prisma Schema
-
- Billing
- Enable Clerk billing ref
- Create billing page
- Add Rate Limiting node-rate-limiter-flexible
- Update prisma schema
- Create usage utils, i.e. getUsageTracker, consumeCredits, refundCredits
- Create Usage Component
- Update tRPC procedures to get usage status
- Improve the usage design by using a tRPC middleware to check credits before each procedure
-
- Agent Memory
- Add previous messages context
- Add fragment title generation
- Add response message generation
-
- Bug Fixes
- Increase Sandbox expiration E2B live time
- Make E2B Template private
| Went to
sandbox_templates/nextjsfolder wheree2b.tomlis located | Run commande2b template publish/unpublish - Improve Conversation history use
takeparameters in prisma query - Improve Error handling react-error-boundary (fine-grained error handling) or nextjs error handling (global error handling)
- Realtime Message Fetching in stead of polling Inngest Realtime
-
- Deployment
- Local deployment test
npm run build && npm run start - Deploy to Vercel
- Bypassing deployment protection ref
- CodeRabbit, a PR review Agent to help you review your code
- Windsuft, a modern code agent to accerlate your code development
- AutoFocus, When you have many displays and many windows open, focus follows mouse is a feature that can help you navigate between
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 Geist, a new font family for Vercel.
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.