How rachitbhatta/dev-event works
Project type and purpose
• This is a Next.js full-stack web application (using the App Router) for browsing and booking events.
• It offers both UI pages (React components under app/ and components/) and serverless API endpoints (app/api/) backed by MongoDB (database/ and lib/mongodb.ts).
File structure
Top-level folders:
• app/ – Next.js pages, layouts, server & client components, plus API routes under app/api/events.
• components/ – Reusable React UI components (EventCard, BookEvent, NavBar, etc.).
• database/ – Mongoose-style models (event.model.ts, booking.model.ts) and index.ts to register schemas.
• lib/ – Business logic (actions for events and bookings), MongoDB connection helper, constants, utilities.
Config files: next.config.ts, tsconfig.json, eslint.config.mjs, postcss.config.mjs.
Instrumentation: instrumentation-client.ts (likely telemetry).
Extract insights from the README
• Bootstrapped with create-next-app using Next.js App Router.