How garvit000/eco-bay works
Project type and purpose
• From the file tree and minimal README, this is a full-stack web application (“Eco-Bay”) built with Next.js (React + TypeScript) and Firebase.
• The frontend lives under src/app (Next.js 13 app router), and there’s a small “ecobaybackend” directory that encapsulates Firebase initialization, authentication logic (login.ts, useAuth.ts), and any server-side calls.
File structure
• Top-level tech/config files:
– next.config.ts, tsconfig.json, package.json, eslint.config.mjs, postcss.config.mjs
• Frontend:
– src/app/layout.tsx – Root layout
– src/app/page.tsx – Home page
– src/app/about/page.tsx, src/app/contact/page.tsx – Static pages
– src/app/login/page.tsx, src/app/register/page.tsx – Auth pages
– src/app/Components/* – Reusable React components (navbar.tsx, home.tsx, Req.tsx)
– globals.css – Global styles
• Backend helpers (ecobaybackend directory):
– lib/firebase.ts – Firebase SDK initialization
– login.ts – Server-side login logic (custom API or helper)
– useAuth.ts – React hook for client-side auth status