How asharahmedd/capstonea-fullstack works
Project type and purpose
• This is a full-stack Next.js application (using the “app” router) with both UI pages and serverless API routes.
• It provides user authentication (via Firebase) and a CRUD interface for a “superhero” resource.
File-structure analysis
• Top-level “app” folder holds your React UI and API route definitions:
• app/page.js, app/layout.js, app/globals.css – your root layout, global styling, and home page
• app/login/page.js, app/register/page.js, app/dashboard/page.js – your authentication pages and protected dashboard
• app/api/superhero/routes.js – serverless API endpoint for superhero operations
• “lib” contains shared libraries:
• lib/firebase.js – initialization of Firebase SDK (Auth & Firestore)
• lib/authContext.js – React Context provider for auth state
• “public” holds static assets; configuration files (next.config.mjs, jsconfig.json) and package.json control build and dependencies.
README insights
• Bootstrapped with Create-Next-App
• Uses next/font for optimized fonts
• Targets deployment on Vercel (serverless environment)