You asked an AI coding agent for an app and it works. The terminal prints http://localhost:8000 , the page looks right, so you paste the link to a friend. They get "This site can't be reached."
Nothing is broken. localhost is not a place on the internet. It is a name for whichever computer is asking.
The short answer
localhost:8000 means "port 8000 on this computer". On your laptop that is your dev server. On your friend's laptop it is their own machine, where nothing is listening. (If something is listening there, they will see their own app instead of yours.)
To share the app, it has to run somewhere other people can reach: on your machine behind a tunnel, or on a host.
A public address is the easy half. The app also has to work there, and four things tend to fail on the first deploy: the database, the settings, the sign-in callback and the build.…