Quick Guide
You built something in Gemini. Now let's get it a real web link you can drop in the discussion board. About two minutes, totally free, no coding. Follow your computer's path below.
In your Gemini chat, type this exactly:
Combine this whole app into one single HTML file with all the CSS and JavaScript inside it.
When the code appears, click the copy icon at the top of the code block. That copies everything at once. Now make it into a file using your computer's steps below.
index.html.txt and the file won't work.)index.html and click Save. Save it to your Desktop so it's easy to find.The file name matters: it must be index.html, all lowercase, with no extra words.
You do not need a folder or a zip. Just the one file.
index.html file from your Desktop straight onto that web page.https://gentle-otter-12345.netlify.app.You lose zero points. Some apps just won't survive the trip out of Gemini, and that's information, not failure. If your link won't work after a real try, post a short screen recording or a screenshot plus one sentence about what your app does. That fully counts.
index.html. On a PC, this usually means it saved as index.html.txt. Redo the save and set "Save as type" to "All Files."Everything above gets you a working app, but the apps above don't actually "think." This section is for when you want one that does: an app that calls an AI while it runs, generating brand-new content on the spot.
The worked example below is a "Do-Now Generator." You type a topic ("8th grade photosynthesis"), click a button, and it asks an AI to write a fresh do-now question every time. The same recipe works for anything that has to think live: an exit ticket that gives real feedback, a vocabulary-sentence maker, a random word-problem writer. We'll walk through building that Do-Now Generator from start to shareable link.
If your app is just a timer, randomizer, matcher, or game, you do not need any of this. Those don't call AI, so the main guide above is all you need.
Inside Gemini, Google quietly runs the AI for you behind a curtain, using a secret key you never see. The moment you copy the file out, the curtain is gone. Your app still tries to call the AI, but the password slot is empty, so the button just does nothing. To make it work on your own, you give it your own key. Here's how.
A key pasted into a public web page is visible to anyone who looks. That's fine for a class assignment as long as you:
Paste this into Gemini Canvas and it will build an app that asks for your own key instead of using the hidden one:
From here it's the same as the main guide: save Gemini's single HTML file, drag it onto Netlify, and share the link. If you ever see an error mentioning “CORS,” you're on a site that blocks the call, so open the file locally or host it on Netlify and it will work.