How desktoo/promptify works
Project type and purpose
• From the file tree and README, this is a Next.js 13 “app”-directory full-stack web application.
• It provides user authentication (via NextAuth), CRUD operations on “prompts,” and user profiles.
• Tech stack: React (server- and client-components), Next.js API routes, Tailwind CSS, NextAuth, MongoDB (or a similar document store), deployed on Vercel.
File structure
• Top-level:
· app/ — React pages and server-component routing (app/api for backend endpoints)
· components/ — reusable React UI components
· models/ — Mongoose (or similar) schema definitions for Prompt and User
· utils/database.js — database connection helper
· assets/, styles/ — static assets and global CSS
· next.config.mjs, jsconfig.json, tailwind.config.js — build and path configs
• Under app/:
· app/layout.jsx, app/page.jsx — global layout and homepage
· app/create-prompt, app/update-prompt, app/profile — client pages
· app/api/auth/[...nextauth]/route.js — NextAuth authentication routes
· app/api/prompt/... — CRUD API endpoints
· app/api/users/[id]/posts — nested user posts route
README
• Confirms it’s a Next.js project bootstrapped with create-next-app
• Mentions usage of next/font and deployment on Vercel