Skip to content

Build frontend and backend packages with React and FastAPI for MedScribe#1

Draft
Copilot wants to merge 13 commits into
mainfrom
copilot/build-frontend-backend-packages
Draft

Build frontend and backend packages with React and FastAPI for MedScribe#1
Copilot wants to merge 13 commits into
mainfrom
copilot/build-frontend-backend-packages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 14, 2025

Implements a full-stack application structure with a React frontend using MaterialUI theming and a FastAPI backend ready for AI API integrations. The frontend is themed for MedScribe, an AI-powered medical documentation app for recording clinician-patient conversations and generating EHR notes.

Frontend (React + MaterialUI)

  • React 19 with Vite build tool
  • Global MaterialUI theme context in src/theme/theme.js with medical teal/green color scheme (#00897b)
  • Component structure: NavBar, Main, Footer integrated in App.jsx
  • MedScribe branding throughout the application
  • Medical-focused features: Record & Transcribe, AI-Generated EHR Notes, Download & Integrate
  • Theme includes custom palette, typography, and component overrides
<ThemeProvider theme={theme}>
  <CssBaseline />
  <Box sx={{ display: 'flex', flexDirection: 'column', minHeight: '100vh' }}>
    <NavBar />
    <Main />
    <Footer />
  </Box>
</ThemeProvider>

Backend (FastAPI)

  • Modular structure with routers/ and services/ separation
  • AI service layer in app/services/ai_service.py for external AI API calls
  • Endpoints: /api/ai/generate, /api/ai/models, /api/ai/status
  • CORS middleware configured for localhost:3000
  • Environment-based configuration with .env.example
class AIService:
    async def generate_response(self, prompt: str, max_tokens: int, temperature: float):
        # Ready for OpenAI, Anthropic, Google integrations
        async with httpx.AsyncClient() as client:
            response = await client.post(endpoint, headers={...}, json={...})

Screenshot

MedScribe Frontend

Both packages include comprehensive README files. Frontend runs on :3000, backend on :8000 with automatic API docs at /docs.

Original prompt

You are an exper senior full stack engineer specializing in websites. In the repository, build out two packages, frontend and backend. In the frontend, build a boilerplate React website using JavaScript. Make sure you use MaterialUI and have a global theme for the website using MaterialUI Theme context. Also, build a basic component structure with Nav Bar, Main, Footer, etc. Include the components within App.jsx. In the backend, use FASTApi (this is where we will call AI apis)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: JonKach <86634186+JonKach@users.noreply.github.com>
Copilot AI changed the title [WIP] Add frontend and backend packages with React and FastAPI Build frontend and backend packages with React and FastAPI Nov 14, 2025
Copilot AI requested a review from JonKach November 14, 2025 18:48
@JonKach
Copy link
Copy Markdown
Owner

JonKach commented Nov 14, 2025

@copilot can you change the appearance (not necessarily structure) of the frontend to match the following description: MedScribe is an MVP AI app that records clinician–patient conversations, transcribes them, and generates a structured, doctor-formatted EHR note. A React frontend captures audio, a backend handles transcription and AI reasoning, and the output is a clean, downloadable EHR-ready document with accurate extractions, differential, ICD-10 codes, and no hallucinations.

Co-authored-by: JonKach <86634186+JonKach@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 14, 2025

@copilot can you change the appearance (not necessarily structure) of the frontend to match the following description: MedScribe is an MVP AI app that records clinician–patient conversations, transc...

Updated the frontend appearance to match MedScribe medical documentation theme in commit e550752.

Changes:

  • Rebranded to "MedScribe" throughout the application
  • Updated color scheme to medical teal/green (#00897b)
  • Modified content to reflect medical features: Record & Transcribe, AI-Generated EHR Notes, Download & Integrate
  • Changed email to support@medscribe.app
  • Updated page title to "MedScribe - AI Medical Documentation"

MedScribe Frontend

Copilot AI changed the title Build frontend and backend packages with React and FastAPI Build frontend and backend packages with React and FastAPI for MedScribe Nov 14, 2025
Copilot AI requested a review from JonKach November 14, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants