How shubham7854/vibe-code-editor works
Project type and purpose
• This is a full-stack web application built with Next.js (app directory, page.jsx files) and Tailwind CSS (tailwind.config.js).
• It uses Prisma (prisma/schema.prisma) as an ORM to interact with a relational database.
• The folder structure under src/app indicates two major route groups: an “admin” area for managing posts and users, and an “auth” area for sign-in/sign-up flows.
File structure
• Top-level:
– prisma/schema.prisma → database schema definitions and datasource configuration.
– public/thumbnails → static assets served directly by Next.js.
– tailwind.config.js → styling system configuration.
• src/app: Next.js 13 app Router
– (admin)/posts/page.jsx, (admin)/users/page.jsx → server components rendering admin dashboards.
– (auth)/sign-in/page.jsx, (auth)/sign-up/page.jsx → authentication entry points.
– src/app/actions/getBlogs.js, getSingleUser.js → server-side functions (likely invoked via React Server Components or API routes) that fetch data via Prisma.
README for additional insights
• (Empty) — file structure and naming conventions reveal the architecture.
Detail
• Which code runs on the server vs. the client.