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

Flask App Building #234

Open jaikushwaha7 opened 3 years ago

jaikushwaha7 commented 3 years ago

Flask App Building with Python

  1. Start the app building by going to folder where you want to save code. In my case: `D:>cd D:\Study\Internsala\Devincept\Devincept Intership AI

D:\Study\Internsala\Devincept\Devincept Intership AI>mkdir app5

D:\Study\Internsala\Devincept\Devincept Intership AI>cd app5`

  1. Created a new environment as venv py -3 -m venv venv

  2. Activated with the following script venv\Scripts\activate

  3. Installed the flask package using: pip install flask

  4. Written the flask code in python using spyder interface as app.py. [https://github.com/jaikushwaha7/Flask-App-Building-Steps/blob/main/app2.py].

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

  6. On running the code and link was provided where the output of the app was displayed in a HTML format. Output 2

SoFlask a simple python web application framework that allows us to build up web-applications.