<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MATHIVATHANA S</title>
    <description>The latest articles on DEV Community by MATHIVATHANA S (@mathivathana_s_b38c7b046b).</description>
    <link>https://dev.to/mathivathana_s_b38c7b046b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2989564%2Fe2ef0c0c-1621-4175-9afe-0161951c178a.jpg</url>
      <title>DEV Community: MATHIVATHANA S</title>
      <link>https://dev.to/mathivathana_s_b38c7b046b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mathivathana_s_b38c7b046b"/>
    <language>en</language>
    <item>
      <title>How to setup simple flask application</title>
      <dc:creator>MATHIVATHANA S</dc:creator>
      <pubDate>Sat, 29 Mar 2025 12:17:32 +0000</pubDate>
      <link>https://dev.to/mathivathana_s_b38c7b046b/how-to-setup-simple-flask-application-f96</link>
      <guid>https://dev.to/mathivathana_s_b38c7b046b/how-to-setup-simple-flask-application-f96</guid>
      <description>&lt;p&gt;What is flask?&lt;br&gt;
    Flask is one of the lightweight framework of python, which is based on web application,(i.e) can build web applications using python with flask application.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a folder  of your choice&lt;/li&gt;
&lt;li&gt;Create file name app.py&lt;/li&gt;
&lt;li&gt;Insert the below code
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from flask import Flask  // importing Flask class from flask 
app = Flask(__name__)   //

@app.route('/') //decorator tells Flask what URL should trigger our function.
def hello_world():
    return 'Hello, World!'

if __name__ == "__main__":
    app.run(debug=True)  // starts flask dev. server with debug mode to log errors.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;open the root folder of app.py eg: flask_app/&lt;/li&gt;
&lt;li&gt;run this on terminal
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install flask
python app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;open browser, navigate to &lt;a href="http://127.0.0.1:5000/" rel="noopener noreferrer"&gt;http://127.0.0.1:5000/&lt;/a&gt; , you will see output
    Hello, World!  [due to technical difficulties could not able to attach the screenshot]&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
