Use Copilot to assemble a FastAPI image browser

A developer asked GitHub Copilot Agent Mode for one FastAPI app and got a working image browser back.

Done with GitHub Copilot· Intermediate

What they did
They started with a new VS Code workspace and put a handful of photos into an images folder. Then they gave Copilot Agent Mode a single instruction to create a Python FastAPI site with an HTML interface, Tailwind styling, and AJAX behavior. Copilot generated the project files and executed the app while they observed, and another commenter appreciated being able to inspect the code before any commit.
How it went
From that one request, they ended up with a working web app for viewing images. The discussion also pointed out that the tool still has rough edges, and other commenters mentioned refusals or errors on different jobs.
Tips
A small, tidy starting folder makes it easier for the agent to stay on task. If you want to avoid surprises, ask to see the proposed changes first and approve them before anything is committed or otherwise irreversible.

Try it yourself with GitHub Copilot

In a fresh VS Code workspace that already has an images folder with a few sample photos, help me build a Python FastAPI web app for browsing those images. Use an HTML front end with Tailwind styling and AJAX calls. Before you create or save any files, show me the planned structure and the code you want to add so I can review it. Do not commit, submit, delete, or send anything until I say go. Once approved, create the project, run it locally with [command], and then give me simple instructions for checking that it works.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.