You will build three small Flask web apps with help from ChatGPT or Claude, test them in VS Code, put each one on GitHub, deploy each one free on Render, and showcase all three on your Capstone page. No experience with Flask or Render is needed: every step is below.
Each app is worth 25 points, and your Capstone page is worth 25.
| What is graded | Points |
|---|---|
| Each app (25 points, three apps = 75) | |
| Runs locally with no errors, has the required files, and has at least 3 HTML pages linked by a main navigation bar | 6 |
| Works when visited on Render | 6 |
| README explains the app and exactly how you used AI, with your prompts | 5 |
| Its own GitHub repository, synced, with at least 3 commits | 4 |
| Your own idea, with at least one feature that responds to the user | 4 |
| Capstone page (25 points) | |
| All three apps added, each with live link, code link, screenshot, and description | 15 |
| Page made public, with a headline in your profile | 5 |
| Page address submitted on Canvas | 5 |
Each app lives in its own folder, with its own GitHub repository and its own Render site. Each one must have:
index.html) and at least two more, all extending base.html, whose navigation bar links to every page and shows at the top of every page. A page the menu can't reach doesn't count.Every app uses this folder layout. The files marked optional are up to you.
my-tip-calculator/
app.py the Flask app: routes and logic
requirements.txt the packages Render installs
.gitignore files that never go to GitHub
README.md what the app is and how you used AI
templates/
base.html the layout: navigation bar, footer, {% block content %}
index.html the home page, extends base.html
page1.html a second page, extends base.html
page2.html a third page, extends base.html
static/ optional: style.css, images
data/ optional: .json or .csv files the app reads
Name the page files after what they show (results.html, history.html), not page1 and page2.
You probably have most of this from earlier labs. Skip anything you already have.
python3):
python --version
git --versiongit config --global user.name "Your Name"
git config --global user.email "[email protected]"capstone in your OneDrive (or Documents). All three apps go inside it, each in its own folder.Use ChatGPT or Claude as a helper for each app, in a different way each time, so you practice three kinds of prompting:
| App | Your idea (examples) | Use the AI to |
|---|---|---|
| App 1 | Timesheet, to do list, reading log | Generate the whole starting structure: files, folders, and routes |
| App 2 | Tip calculator, unit converter, recipe scaler | Write one Python function that does the app's main calculation |
| App 3 | Simple blog, club page, travel request form | Write the HTML templates: the layout with a navigation bar, and the pages |
Copy it into ChatGPT or Claude and replace the part in brackets. The details at the end make the app run on Render with no changes.
I am a beginner learning Python and Flask. Build a small Flask app:
[describe your app in 2 or 3 sentences: what it does, who uses it,
and what the user can type in or click].
Requirements:
- app.py with app = Flask(__name__) and one route per page
- templates/base.html with a main navigation bar linking every page
and a footer; every other page extends it with {% block content %}
- at least 3 HTML pages: index.html plus at least two more
- at least one HTML form that the app processes and responds to
- Bootstrap 5 from a CDN for styling, no other frameworks
- no database: keep data in a Python list or read it from a JSON file
- requirements.txt containing Flask and gunicorn
- end app.py with: if __name__ == "__main__": app.run(debug=True)
Show every file with its full path, and explain each file in one
or two sentences.
Then use follow up prompts to shape it, for example:
Write a Python function convert_recipe(ingredients, servings, new_servings) that ... Add comments explaining each line.Rewrite base.html with a navbar that has links to Home, Posts, and About, and highlight the page I am on.I got this error when I ran it: [paste the error]. Explain what it means and how to fix it.Replace the README's contents with these headings, filled in:
# Tip Calculator
Live site: https://your-app.onrender.com
## What it does
Two or three sentences, and who would use it.
## How I used AI
Which tool I used, the prompts I gave it (copied here), what it got
right, and what I had to fix or change myself.
## How to run it
pip install -r requirements.txt
python app.py
capstone folder, make a folder for the app. Use lowercase letters and dashes, like tip-calculator. This name becomes your GitHub repository's name.templates folder with base.html inside it). Paste each file's code in and save (Ctrl + S).requirements.txt holds exactly these two lines (replace what the AI wrote):
Flask==3.1.3
gunicorn==26.2.0.gitignore (with the dot) holding these lines. It keeps your environment and secrets off GitHub:
.venv/
venv/
__pycache__/
.envapp.py: it must contain the line app = Flask(__name__), with the variable named app. Render looks for that exact name.A virtual environment is a private copy of Python for this one app, with Flask installed in it. Each app gets its own.
.venv folder appears.app.py and click the Run Python File button (the triangle at the top right).Running on http://127.0.0.1:5000. Hold Ctrl and click it to open your app in the browser..py file restarts the app by itself. Refresh the browser to see it. Changes to an HTML file show with a refresh.Got an error? Copy the whole red message from the terminal into the AI with the prompt from Part 2, or see Troubleshooting.
With the app running, go through this list in the browser. Fix anything that fails before moving on: it is much easier to fix now than after it is on Render.
/nothing, shows a not found page rather than an error.If the app saves data while it runs (an added task, a new post), know that on Render's free tier it is lost whenever the app restarts. That is fine for this project; mention it in your README.
VS Code can create the GitHub repository and upload your app in one step. Do this once per app.
.gitignore exists (Part 3, step 5). Without it, the large .venv folder gets uploaded.First version in the box, click Commit, and choose Yes if asked to stage all changes. The button then reads Publish Branch: click it.).venv is not checked, then click OK..venv folder.The repository must be public, so Render and your instructor can see it.
Render copies your app from GitHub, installs Flask, and runs it at an address like https://tip-calculator-ab12.onrender.com. Do this once per app.
| Setting | Value |
|---|---|
| Name | The app's name, like tip-calculator (it becomes part of the address) |
| Language | Python 3 |
| Branch | main |
| Root Directory | leave empty |
| Build Command | pip install -r requirements.txt |
| Start Command | gunicorn app:app |
| Instance Type | Free |
Render's labels change from time to time; pick the closest match. Things to know about the free tier:
Repeat Parts 2 through 6 for each app, starting from a new folder opened in VS Code (File, then Open Folder). Never put one app inside another app's folder: each needs its own .venv, its own repository, and its own Render service. When you finish you will have three folders, three GitHub repositories, and three Render addresses.
Every time you finish a change, commit and sync. Render redeploys by itself.
Add results page.Commit often. Each app needs at least 3 commits, and small commits make it easy to undo a mistake.
The class site gives you a Capstone page to showcase your work. You need an authenticator app on your phone (Google Authenticator, Microsoft Authenticator, or Authy) and the join code given in class.
| Box | What to enter |
|---|---|
| Course | Your CIS 2020 course |
| Project title | The app's name |
| One line summary | One sentence for the project card |
| Live project link | The app's Render address |
| Code link | The app's GitHub repository address |
| Description | What the app does, who it is for, how you used AI, and one thing you learned |
| Screenshot | That app's screenshot |
Submit one thing on Canvas: the address of your Capstone page. Click View my page and copy the address from your browser. It looks like https://www.cruzjohal.com/capstone/u/your-name.
Before you submit, check it:
| What you see | What to do |
|---|---|
python is not recognized (Windows) | Run the Python installer again, choose Modify, turn on adding Python to the PATH, then close and reopen VS Code. |
No module named flask | VS Code is using the wrong Python. Press Ctrl + Shift + P, run Python: Select Interpreter, and pick the one that says .venv. |
running scripts is disabled on this system | Click the arrow beside the + on the terminal panel, choose Command Prompt, and use that terminal. |
TemplateNotFound: index.html | The HTML files must be inside a folder named exactly templates, next to app.py. |
Address already in use | The app is already running in another terminal. Stop it with Ctrl + C, or close that terminal. |
Render: Failed to find attribute 'app' | The Start Command must be gunicorn app:app, and app.py must contain app = Flask(__name__). |
Render: No module named ... | That package is missing from requirements.txt. Add it, then commit and sync. |
| Render: the build fails | Open the Logs tab and read the first red line. Paste it into the AI with your question. |
| My change doesn't show on Render | Commit and sync it, then wait a few minutes. Check the Events tab on Render. |
| The Render page takes a minute to load | Normal on the free tier: the app was asleep. |
| The sign in link says it expired | Request a new one from the sign in page. It works once, for 15 minutes. |
| Add a project is missing | Enter your class's join code in the My courses box first. |
Try a quick idea in the Python Playground · Back to CIS 2020