Learn-Write-Repeat/Open-contributions

My First Flask App

DibyashaPanda opened this issue · 0 comments

FLASK:

  • Flask is a web application framework in python

  • Flask depends on the Jinja template engine and the Werkzeug WSGI toolkit.

Steps to create Flask App:

  1. Start the app building by going to the folder where you want to save code. In my case:
    C:>C:\Usres\HP-PC\Documents\Internship\DevIncept
    C:>C:\Usres\HP-PC\Documents\Internship\DevIncept\mkdir app3
    C:>C:\Usres\HP-PC\Documents\Internship\DevIncept\cd app3

  2. Created a new virtual environment env
    pip install virtualenv
    virtualenv env

  3. Activated the virtual environment
    env\Scripts\activate

  4. Installed the flask package using:
    pip install flask

  5. Written the flask code in python using sublime text as app3.py ([https://github.com/DibyashaPanda/MY-FIRST-Flask-App])

  6. Set the flask app by connecting to app3.py and running it.
    set FLASK_APP=app3.py
    flask run

  7. On running the code and link was provided where the output of the app was displayed in an HTML format.