This is a NextJS starter in Firebase Studio.
To get started, take a look at src/app/page.tsx.
- spec.yaml: OpenAPI for FEMA requests and responses.
- models_v2.py: Pydantic schema for FEMA requests and responses.
- rules.md: constrains on FEMA related requests and responses.
- src/lib/fmea-rules.ts: existing rules implementation.
The main application runs on a single development server. For AI-specific features, a second Genkit server is required.
In your terminal, run the following command to start the Next.js development server. This includes the main UI and any standard Next.js API Routes.
npm run devThis will typically start the application on http://localhost:9002.
If you are working on or using AI-powered features (Genkit flows), you will need to run the Genkit server in a separate terminal:
npm run genkit:watchThis starts the Genkit development UI (usually on http://localhost:4000) where you can see and test your flows.
This project includes a standard API endpoint to verify FMEA data against a set of rules.
- Endpoint:
POST /api/verify-fmea - Description: Accepts FMEA data as a JSON string and returns rule verification results.
- Body:
{ "fmeaJson": "<Your FMEA JSON as a string>", "fmeaType": "dfmea" } - Note: This is a standard Next.js API route and does not require the Genkit server to be running.