https://github.com/manthanank/hello-world-in-flask
Hello World In Flask
https://github.com/manthanank/hello-world-in-flask
flask
Last synced: 5 months ago
JSON representation
Hello World In Flask
- Host: GitHub
- URL: https://github.com/manthanank/hello-world-in-flask
- Owner: manthanank
- Created: 2022-09-16T18:44:00.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T18:51:46.000Z (almost 4 years ago)
- Last Synced: 2025-02-17T03:33:49.593Z (over 1 year ago)
- Topics: flask
- Language: Python
- Homepage:
- Size: 6.22 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Hello World In Flask
## **Virtual environments**
### **Create an environment :**
```jsx
//In Windows
> mkdir myproject
> cd myproject
> py -3 -m venv venv
```
### **Activate the environment :**
```jsx
> venv\Scripts\activate
```
### Install Flask :
```jsx
pip install Flask
```
## Hello World! in Flask :
```jsx
//save as hello.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "
Hello, World!
"
```
### Run the application:
```jsx
flask --app hello run
```