Add concurrently scripts to co-launch NutriHelp-AI server#268
Closed
TienNguyen3711 wants to merge 4 commits into
Closed
Add concurrently scripts to co-launch NutriHelp-AI server#268TienNguyen3711 wants to merge 4 commits into
TienNguyen3711 wants to merge 4 commits into
Conversation
Add `npm run dev:all` and `npm run start:all` scripts using the `concurrently` package to start both Nutrihelp-api and NutriHelp-AI (Python/FastAPI) with a single command. No code or API contracts changed. Co-Authored-By: Tien Nguyen <s224882599@deakin.edu.au>
…demo - chatbotService: replace stub response with Groq llama-3.3-70b (nutrition assistant) - chatbot route: add POST / alias so mobile app can call /api/chatbot directly - mealPlanAIController: accept snake_case fields (calorie_target, dietary_preference) from mobile in addition to existing camelCase fields - healthPlanController: replace Python AI server fetch with Groq — generates 4-week health plan from medical report and survey data without requiring NutriHelp-AI running Co-Authored-By: Tien Nguyen <s224882599@deakin.edu.au>
…PlanController - chatbot route: keep POST / alias for mobile + add authenticateToken middleware to match master's security pattern - healthPlanController: merge master's normalizeMedicalReportForPlan and buildFallbackWeeklyPlan helpers with our Groq implementation — Groq is primary, fallback kicks in automatically if Groq fails or is unconfigured Co-Authored-By: Tien Nguyen <s224882599@deakin.edu.au>
Add 4 AI endpoints ported exactly from the Python FastAPI service: - POST /ai-model/chatbot/chat - POST /ai-model/chatbot/chat_with_rag - POST /ai-model/chatbot/transcribe - POST /ai-model/medical-report/plan/generate Creates routes/ai/chatbot.js and routes/ai/healthPlan.js (CommonJS), installs chromadb, and registers routes in routes/index.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run dev:allscript: starts bothNutrihelp-api(Node.js, port 8081) andNutriHelp-AI(Python/FastAPI, port 8000) concurrently with a single commandnpm run start:allscript: same for production modeconcurrently ^9.2.1as a devDependencyMotivation
Previously, developers had to open two separate terminals and start each service manually. This change wraps both into one command, reducing setup friction without altering any API contracts or code structure.
What does NOT change
NutriHelp-AIremains a fully independent repo — the AI team continues to work on it separatelyhttp://localhost:8000/ai-model/...) is unchangedUsage