Skip to content

Update README, switch Render deployment to FastAPI backend#2

Merged
PSchmitz-Valckenberg merged 1 commit into
mainfrom
feat/deploy-setup
May 8, 2026
Merged

Update README, switch Render deployment to FastAPI backend#2
PSchmitz-Valckenberg merged 1 commit into
mainfrom
feat/deploy-setup

Conversation

@PSchmitz-Valckenberg

Copy link
Copy Markdown
Owner

Summary

  • Complete README rewrite reflecting the new FastAPI + Next.js stack (was still describing the old Flask app with OpenAI)
  • Switch render.yaml from Flask root app to FastAPI backend in backend/ directory
  • Add frontend/.env.local.example for local development setup

What changed

README:

  • Updated stack badges (FastAPI, Next.js, Gemini)
  • New project structure diagram
  • Separate local dev instructions for backend and frontend
  • Updated environment variable tables (Gemini instead of OpenAI)
  • Updated API endpoint reference
  • Added Vercel deployment instructions for the frontend

render.yaml:

  • rootDir: backend — Render now builds and serves the FastAPI app
  • Start command updated to gunicorn app.main:app --worker-class uvicorn.workers.UvicornWorker
  • Env vars updated: GEMINI_API_KEY, GEMINI_MODEL, SQLITE_PATH

Test plan

  • Merge after feat/nextjs-frontend is merged (this branch builds on top of it)
  • Verify Render redeploys successfully with the new rootDir config
  • Confirm /healthz returns "version": "0.3.0" after deploy

Copilot AI review requested due to automatic review settings May 8, 2026 23:51
@PSchmitz-Valckenberg PSchmitz-Valckenberg merged commit 6aa3788 into main May 8, 2026
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates deployment/docs to reflect the migration from the legacy Flask app to a FastAPI (backend) + Next.js (frontend) stack, with Render hosting the backend and Vercel hosting the frontend.

Changes:

  • Rewrites README.md with updated stack description, local development instructions, env var tables, and endpoint references.
  • Updates render.yaml to deploy the FastAPI app from backend/ and refreshes environment variable configuration.
  • Adds frontend/.env.local.example to document local frontend configuration.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
render.yaml Switches Render deployment to the FastAPI backend under backend/ and updates start command/env vars.
README.md Replaces Flask-era documentation with FastAPI + Next.js setup, env vars, endpoints, and deployment instructions.
frontend/.env.local.example Provides an example NEXT_PUBLIC_API_URL for local frontend development.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread render.yaml
rootDir: backend
buildCommand: pip install -r requirements.txt
startCommand: gunicorn app:app
startCommand: gunicorn app.main:app --worker-class uvicorn.workers.UvicornWorker --workers 2
Comment thread README.md
|----------|---------|-------------|
| `GEMINI_API_KEY` | — | Required for AI features. Get one free at [aistudio.google.com](https://aistudio.google.com). |
| `GEMINI_MODEL` | `gemini-2.5-flash-lite` | Gemini model to use. |
| `SEARCH_LIMIT` | `50` | Max results per search query (1–200). |
Comment thread README.md
| `/sitemap.xml` | XML | Public page sitemap. |
| Method | Route | Description |
|--------|-------|-------------|
| `GET` | `/api/search?q=<term>` | Search the dictionary. Returns up to 50 results. |
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.

2 participants