Learn-Write-Repeat / Open-contributions

This Repository is for Learning purpose, and open contributions under DevIncept program.
https://dcp.devincept.com/
MIT License
47 stars 445 forks source link

My First Flask App #235

Open DibyashaPanda opened 3 years ago

DibyashaPanda commented 3 years ago

FLASK:

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.