Welcome to the Flask Workshop! This repository provides the materials used in the Flask workshop conducted by the ACM chapter at BITS Pilani Dubai Campus, covering Python basics, Flask setup, and web application development.
- Overview
- Workshop Outline
- Prerequisites
- Getting Started
- Project Overview
- Run the Application
- Resources
This workshop introduces participants to Python and Flask, guiding them from basic programming concepts to building a simple web application. Flask is a lightweight and flexible web framework in Python, ideal for both beginners and experienced developers.
- Basics of Web Development
- Introduction to Python
- Workshop Prerequisites
- Displaying "Hello, World!" in Terminal
- Variables and Data Types
- Conditional Keywords (if, elif, else)
- Loops (while, for)
- Functions
- Strings and String Functions
- Lists and List Functions
- Dictionaries
- Introduction to Flask
- Setting Up Your Environment
- Getting Started with Flask
- Working with Templates
- Template Inheritance
- Project Overview: Task Manager
- Updating the UI
- POST and GET Methods
Please ensure the following are installed on your system:
- Python 3.x
- A code editor (e.g., Visual Studio Code)
- pip, the Python package manager (included with Python)
-
Clone the repository:
git clone https://github.com/your-username/flask-workshop.git cd flask-workshop
-
Set up a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- Windows:
.\venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
-
Install Flask:
pip install flask
This workshop includes building a simple Task Manager Web Application with the following features:
- Add tasks with descriptions
- Display tasks with the date added
- Update and delete tasks
- Start the Flask application:
python app.py
- Open your web browser and go to
http://localhost:5000
to view the application.