{"id":25185331,"url":"https://github.com/kanchitank/simple-flask-application","last_synced_at":"2026-05-03T06:31:23.534Z","repository":{"id":104093215,"uuid":"302301842","full_name":"kanchitank/Simple-Flask-Application","owner":"kanchitank","description":" A simple application using Flask.","archived":false,"fork":false,"pushed_at":"2021-06-28T14:13:54.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T08:46:02.319Z","etag":null,"topics":["flask","flask-application","html","html5","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanchitank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-08T10:11:56.000Z","updated_at":"2021-06-28T14:13:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"614928d7-8bc7-4687-be24-6c22d6db6b5c","html_url":"https://github.com/kanchitank/Simple-Flask-Application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kanchitank/Simple-Flask-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanchitank%2FSimple-Flask-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanchitank%2FSimple-Flask-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanchitank%2FSimple-Flask-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanchitank%2FSimple-Flask-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanchitank","download_url":"https://codeload.github.com/kanchitank/Simple-Flask-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanchitank%2FSimple-Flask-Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","flask-application","html","html5","python","python3"],"created_at":"2025-02-09T19:37:20.269Z","updated_at":"2026-05-03T06:31:23.520Z","avatar_url":"https://github.com/kanchitank.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FLASK\n\n## What is Flask?\n\n\u003cimg src = \"https://miro.medium.com/max/4096/1*tJbEjxx-ne6uUzCbqueIWg.png\" width=\"70%\"\u003e\n\n### [Flask](https://flask.palletsprojects.com/en/1.1.x/) is a web application framework written in Python.\nThis means flask provides you with **tools, libraries and technologies** that allow you **to build a web application**. \u003cbr\u003e\nThis web application can be some web pages, a blog, a wiki or go as big as a web-based calendar application or a commercial website. \u003cbr\u003e\n\nFlask is part of the categories of the micro-framework. Micro-framework are normally framework with little to no dependencies to external libraries. This has pros and cons. Pros would be that the framework is light, there are little dependency to update and watch for security bugs, cons is that some time you will have to do more work by yourself or increase yourself the list of dependencies by adding plugins. In the case of Flask, its dependencies are:\n\n- **Werkzeug** a WSGI utility library\n- **Jinja2** which is its template engine\n\n### WSGI\n**[WSGI](https://werkzeug.palletsprojects.com/en/1.0.x/)** stands for **\"Web Server Gateway Interface\"**. It is used to forward requests from a web server (such as Apache or NGINX) to a backend Python web application or framework. From there, responses are then passed back to the webserver to reply to the requestor.\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\u003cimg src = \"https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/09/WSGI.png\" width=\"50%\"\u003e\n\u003cbr\u003e\n\n### Jinja2\n**[Jinja](https://jinja.palletsprojects.com/en/2.11.x/)** is a modern and designer-friendly templating language for Python, modelled after Django’s templates. It is fast, widely used and secure with the optional sandboxed template execution environment.\n\n\u003cbr\u003e\u003cbr\u003e\n\n## Prerequisites for the better understanding of Flask\n- **Python**\n- **HTML**\n\n\u003cbr\u003e\u003cbr\u003e\n\n## Installation of FLASK\n\n### A simple application in flask\nWe are going to perform a very basic application with flask.\n\u003cbr\u003e\u003cbr\u003e\n\n## Step 1: Install latest version of [Python](https://www.python.org/downloads/windows/) \n\u003cbr\u003e\n\n## Step 2: Creation of a directory and virtual environment\nType the following commands in the command prompt.\n\u003cbr\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/65490196/95449893-08ec4600-0983-11eb-84da-a70230d4ad13.png\" width=\"50%\"\u003e\n\nThe above command **\"py -3 -m venv venv\"** is for virtual environment creation.\n\u003cbr\u003e\u003cbr\u003e\n\n## Step 3: Activation\nNow type the following command in the command prompt to activate the virtual environment.\n\u003cbr\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/65490196/95450216-992a8b00-0983-11eb-892f-28245fb0ca46.png\" width=\"50%\"\u003e\n\n\u003cbr\u003e\n\n## Step 4: Install FLASK\n\u003cbr\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/65490196/95450720-5321f700-0984-11eb-844f-d95a642101f8.png\" width=\"100%\"\u003e\n\n\u003cbr\u003e\n\n## Step 5: Creation of the application using a text editor\nAfter completing the installation, let’s get our hands on the code.\n\u003cbr\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/65490196/95452767-66829180-0987-11eb-97b6-28a65a3c5d93.png\" width=\"70%\"\u003e\n\n\u003cbr\u003e\n\n## Step 6: Create a HTML login page\nBelow is source code of the file.\n\u003cbr\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/65490196/95453188-06401f80-0988-11eb-93c7-811dd9e52938.png\" width=\"70%\"\u003e\n\n\u003cbr\u003e\n\n## Step 7: Set FLASK_APP and run the flask\n\u003cbr\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/65490196/95452916-a2b5f200-0987-11eb-85d6-7f0a0c2b2389.png\" width=\"70%\"\u003e\n\n\u003cbr\u003e\n\n## Step 8: Open login.html in the browser\nAfter the development server starts running, open login.html in the browser, **enter Name** in the text field and **click Submit** button. \u003cbr\u003e\n\u003cbr\u003e\n\n![image](https://user-images.githubusercontent.com/65490196/95446723-4ef2db00-097e-11eb-8f87-a4dd8ea1379f.png)\n\n\u003cbr\u003e\n\n### The output would be the following:\n\u003cbr\u003e\n\n![image](https://user-images.githubusercontent.com/65490196/95446780-64680500-097e-11eb-8443-02bbc8ac3524.png)\n\n### And we're done! We've successfully created a simple application in FLASK!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanchitank%2Fsimple-flask-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanchitank%2Fsimple-flask-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanchitank%2Fsimple-flask-application/lists"}