How navwireless/studio works
Project type and purpose
• This is a full-stack, React-based web application built with Next.js (App Router v13).
• It focuses on Free-Space Optical (FSO) link planning (line-of-sight, Fresnel-zone calculations) and has some AI/dev tooling under src/ai.
• It’s deployed via Firebase Studio (Firebase Hosting + Cloud Functions/SSR).
File structure
• Top-level directories:
– .next: build output (static assets, server bundles)
– src/app: Next.js App-Router routes (layout.tsx, page.tsx, actions.ts)
– src/components: UI components subdivided into domain-specific (fso) and generic (ui, layout)
– src/lib: pure business logic (los-calculator, form schema, utilities)
– src/ai: developer-tooling or AI integration scripts (genkit, dev)
• No standalone “backend” folder: backend logic lives in server actions (src/app/actions.ts) and Next.js server components.
• Build/deploy scripts: next.config.ts, postcss.config.mjs, tailwind.config.ts, and GitHub workflows for CI.
Architectural patterns & technologies
• App-Router (Next.js 13): separation of server vs client components
• Server Actions: using src/app/actions.ts for secure server-side logic
• SSR/SSG with Firebase Functions & Hosting
• Tailwind + PostCSS for styling
• TypeScript throughout
• Utility modules (los-calculator) encapsulate domain logic