This tutorial shows how to set up a new Flask project in Replit using the Agent and get it running in the workspace.
Note: Flask is a Python micro-framework used for building web apps and APIs. You need a Replit account to get started. Sign up at replit.com if you don't have one yet.
- Sign in to your account at replit.com. On the dashboard, click + Create Something New.
- In the prompt, type "Create a Python project with Flask installed" and click the Arrow button to run. The Agent sets up the environment automatically.
- Wait for Replit to set up the environment, then click the Open Files icon in the top-right corner and click File tree.
- Review the generated project structure. Replit creates:
- main.py – contains your Flask app logic and routes
- pyproject.toml – manages dependencies
- Click main.py to open it in the editor - for example, add a route that returns a Q3 performance summary for a SaaS team.
- Click the Run button at the top of the workspace. Replit starts the Flask server and displays the local URL in the Console panel on the right.
- To add a package, ask the Agent - for example, "Add SQLAlchemy to this project" - and it will install it and update your dependencies automatically.
.gif)
