Skip to content

My First Flask App #235

Description

@DibyashaPanda

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions