<?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: Christian Lutz</title>
    <description>The latest articles on DEV Community by Christian Lutz (@chrislutz).</description>
    <link>https://dev.to/chrislutz</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%2F152502%2F497e4785-ad12-4c9d-952c-0bd82f521e15.jpg</url>
      <title>DEV Community: Christian Lutz</title>
      <link>https://dev.to/chrislutz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chrislutz"/>
    <language>en</language>
    <item>
      <title>What inspires you about programming?</title>
      <dc:creator>Christian Lutz</dc:creator>
      <pubDate>Wed, 12 Jun 2019 16:46:41 +0000</pubDate>
      <link>https://dev.to/chrislutz/what-inspires-you-about-programming-a2f</link>
      <guid>https://dev.to/chrislutz/what-inspires-you-about-programming-a2f</guid>
      <description>&lt;p&gt;Hello fellow programmers! 🙋‍♂️&lt;/p&gt;

&lt;p&gt;We all already know, programming is awesome and makes a lot of fun.&lt;br&gt;
You can do virtually anything. From creating applications over to programming machines up to creating images of black holes.&lt;/p&gt;

&lt;p&gt;My questions to you are:&lt;br&gt;
What inspires you about programming?&lt;br&gt;
Why do you have started to learn to program?&lt;br&gt;
What websites (besides dev.to) do you visit, to get inspired?&lt;/p&gt;

&lt;p&gt;Let us discuss! &lt;/p&gt;

</description>
      <category>discuss</category>
      <category>programming</category>
    </item>
    <item>
      <title>Should you follow a tutorial about a specific topic and implement it into your project? 🤔 </title>
      <dc:creator>Christian Lutz</dc:creator>
      <pubDate>Sun, 05 May 2019 12:29:38 +0000</pubDate>
      <link>https://dev.to/inspiredprogrammer/should-you-follow-a-tutorial-about-a-specific-topic-and-implement-it-into-your-project-53jh</link>
      <guid>https://dev.to/inspiredprogrammer/should-you-follow-a-tutorial-about-a-specific-topic-and-implement-it-into-your-project-53jh</guid>
      <description>&lt;p&gt;I'm working on an authentification function for my project &lt;a href="https://monitor.inspiredprogrammer.com"&gt;"ServerMonitor"&lt;/a&gt;. My knowledge about such a topic is quite small, so I searched for a &lt;a href="https://youtu.be/803Ei2Sq-Zs"&gt;tutorial on YouTube&lt;/a&gt; to get it done.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oiLW0PXY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0mzbbcsjr0pxuivgl7g1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oiLW0PXY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0mzbbcsjr0pxuivgl7g1.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Working through this tutorial helps me a lot but it feels wrong.&lt;br&gt;
Everything I have programmed so far was a one to one copy of this tutorial which brings me to the following question.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Should you follow a tutorial about a specific topic and implement it into your project?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I mean, you get a lot done and learn something but it is not your own code.&lt;br&gt;
Should you rather try to get through the documentation and try to solve everything on your own?&lt;/p&gt;

&lt;p&gt;How do you deal with it?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>help</category>
    </item>
    <item>
      <title>May I introduce? ServerMonitor! | The process of creating a web application</title>
      <dc:creator>Christian Lutz</dc:creator>
      <pubDate>Sun, 28 Apr 2019 12:58:26 +0000</pubDate>
      <link>https://dev.to/inspiredprogrammer/may-i-introduce-servermonitor-the-process-of-creating-a-web-application-1cj4</link>
      <guid>https://dev.to/inspiredprogrammer/may-i-introduce-servermonitor-the-process-of-creating-a-web-application-1cj4</guid>
      <description>&lt;p&gt;&lt;strong&gt;It is time!&lt;/strong&gt; 🎉🎉 🔥🔥&lt;br&gt;
Version 1.0.0 of &lt;a href="https://www.monitor.inspiredprogrammer.com" rel="noopener noreferrer"&gt;ServerMonitor&lt;/a&gt; is officially released and it feels awesome!💪&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ukxrjscs7h8yebsprxg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ukxrjscs7h8yebsprxg.png" alt="ServerMonitor V1.0.0" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Introduction 🤝
&lt;/h1&gt;

&lt;p&gt;In this article, I want to tell you about my process of developing my first real project from start to finish. Far too often I had the problem of never finishing any project I have started.&lt;/p&gt;

&lt;p&gt;Maybe this article motivates you to get through the process of starting your own project and working on it until it's finished.&lt;/p&gt;


&lt;h1&gt;
  
  
  How the project got started? 🙋
&lt;/h1&gt;

&lt;p&gt;ServerMonitor started as a simple idea to check if a website is online or not.&lt;br&gt;
My goal for this project was to start as simple as it gets.&lt;br&gt;
On previous attempts, my idea for a web application was way too big to finish it in a manageable time. The approach of starting as small as you can imagine is crucial if you want to finish your project successfully.&lt;/p&gt;


&lt;h1&gt;
  
  
  Planning 📝
&lt;/h1&gt;

&lt;p&gt;To get an idea of how a website monitoring web app looks like, I searched for other websites that do this already. After some search I found &lt;a href="https://isitdown.site/" rel="noopener noreferrer"&gt;isitdown.site&lt;/a&gt;. This website already does everything what I wanted to have in my web app too. The best part of it was, it is created with Flask and is open source. The source code of this website was helpful some times if I did not know any further.&lt;/p&gt;

&lt;p&gt;Now I knew how my project should look and behave.&lt;br&gt;
This helped me to find the first task I had to do.&lt;/p&gt;


&lt;h1&gt;
  
  
  Developing! 💻
&lt;/h1&gt;
&lt;h3&gt;
  
  
  Starting phase 🚲
&lt;/h3&gt;

&lt;p&gt;The first task I had to do was obviously to create a new Flask project.&lt;br&gt;
After that, I started to code the basic function of the web app.&lt;br&gt;
Which does mean: Creating a &lt;a href="https://github.com/ChristianLutzCL/Website-Monitoring/blob/db798e69d162bc9ab7f507157d1362b2cb49db60/monitor.py" rel="noopener noreferrer"&gt;function&lt;/a&gt; that checks the response of a website and print it on the screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsosnmlslgmzhvez79oe4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsosnmlslgmzhvez79oe4.png" alt="First result" width="800" height="103"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So far so good. &lt;br&gt;
After the basic function was implemented, I became even more motivated to work on my project. The next step was also clear. This app requires a user interface so that you can also check other websites.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fre4kfk54734bqir24wwg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fre4kfk54734bqir24wwg.png" alt="Added UI" width="800" height="208"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Half time 🚗
&lt;/h3&gt;

&lt;p&gt;I think around the half time of the development phase, I started making plans for what I have to do next. So I set up a "Projects" panel on Github to get a better overview of the next steps I have to do.&lt;/p&gt;

&lt;p&gt;Breaking up the next bigger goals in small parts and writing them down in a Kanban board helped me a lot to stay focused on the goal. This approach of working is very rewarding because every time you finished something, you can move the card over to "Done".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0rhstd6v9ziojvby1byw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0rhstd6v9ziojvby1byw.png" alt="Kanban Board" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the half time of my development process, my web app looked like that. You can see, the design was not much different compared to the current version. Only the colors have changed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Febyzkv0tv7teyhv2gz0t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Febyzkv0tv7teyhv2gz0t.png" alt="Half time version" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Of course, the web app could do a bit more in this development phase than the first version. I implemented a history to see the last 10 checked websites and some additional information about the checked website itself.&lt;/p&gt;
&lt;h3&gt;
  
  
  Finish line ✈️
&lt;/h3&gt;

&lt;p&gt;At this period of the development process - talking about calendar week 16 and 17 - a  lot of work was done.&lt;/p&gt;

&lt;p&gt;I ... &lt;br&gt;
... changed the UI to the current version.&lt;br&gt;
... added more rows for additional information about the checked website.&lt;br&gt;
... reworked the monitoring function.&lt;br&gt;
... added an explanation of what this web app is about and how to use it.&lt;br&gt;
... reworked the "Info" page - Means adding a changelog and a "Contact Me" form.&lt;/p&gt;

&lt;p&gt;Aaand I fixed bugs.&lt;/p&gt;

&lt;p&gt;My motivation to keep going at this time came right out of my ❤️. I wanted to bring this project to an end I can be proud of. Working on a project get a lot easier if there is a foundation to build on. Everything you work on for now expands your web app.&lt;/p&gt;


&lt;h1&gt;
  
  
  Deploying to DigitalOcean 🤓
&lt;/h1&gt;

&lt;p&gt;The first time I have deployed a version of my web app was on April 20th. Exactly in the "finish line" week. That means, working on the project and deploying took place at the same time.&lt;/p&gt;


&lt;div class="instagram-position"&gt;
  &lt;iframe id="instagram-liquid-tag" src="https://www.instagram.com/p/BweRz6FhLCN/embed/captioned/"&gt;
  &lt;/iframe&gt;
  
&lt;/div&gt;


&lt;p&gt;Working this way was a good idea. Some of the problems I had with my code only appeared after deploying it to the web server. I also created a new Kanban board on Github called "Release sprint" and added all the todo's I had to do for release. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmwi1abrc4ueq7ubb0dt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmwi1abrc4ueq7ubb0dt.png" alt="Release sprint Kanban" width="800" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Working with a web server is a lot of work but it makes fun. I learned a lot about bash and all this server stuff. Don't underestimate the time which you have to spend to solve problems. Often I searched for a solution until two o'clock in the morning.&lt;/p&gt;

&lt;h4&gt;
  
  
  Why DigitalOcean?
&lt;/h4&gt;

&lt;p&gt;Some of you may be asking why I use DigitalOcean and why I like it so much.&lt;/p&gt;

&lt;p&gt;Before I opted for DigitalOcean, I tested Heroku and AWS. After all this testing, my conclusion was, DigitalOcean simply does everything the right way I wanted it to. &lt;br&gt;
The payment options, the selection of servers, the simple UI and all the well-written tutorials have convinced me.&lt;/p&gt;

&lt;p&gt;Last but not least, they will give you a 100$ credit if you create an account after clicking this &lt;a href="https://m.do.co/c/78d56291742a" rel="noopener noreferrer"&gt;link&lt;/a&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  Conclusion 😎
&lt;/h1&gt;

&lt;p&gt;I learned a lot. From finding an idea over to planning and working on it. I have learned, how to break up the big steps in smaller ones, using the Kanban board to track my progress and stay motivated.&lt;/p&gt;

&lt;p&gt;Finishing and releasing a project feels rewarding. Everything you code should be released to the public in some way.&lt;/p&gt;

&lt;p&gt;Only then, writing code makes sense.&lt;/p&gt;




&lt;p&gt;If you want to follow me in some way on &lt;a href="https://twitter.com/inspiredProg" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; or &lt;a href="https://www.instagram.com/inspired_programmer/" rel="noopener noreferrer"&gt;Instagram&lt;/a&gt;, just do it. You will get some further updates about the development of ServerMonitor in the future and also other interesting topics.&lt;/p&gt;

&lt;p&gt;I would be happy to talk to you about every tech-related topic on Twitter, Instagram or here on dev.to.&lt;/p&gt;




&lt;p&gt;Thanks for reading and happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>career</category>
      <category>showdev</category>
      <category>motivation</category>
    </item>
    <item>
      <title>Binge watching random tutorials is a waste of time!</title>
      <dc:creator>Christian Lutz</dc:creator>
      <pubDate>Sun, 14 Apr 2019 19:34:19 +0000</pubDate>
      <link>https://dev.to/chrislutz/binge-watching-random-tutorials-are-a-waste-of-time-557a</link>
      <guid>https://dev.to/chrislutz/binge-watching-random-tutorials-are-a-waste-of-time-557a</guid>
      <description>&lt;p&gt;A lot of people try to learn programming trough reading a book from cover to cover, attending boot camps or watching endless tutorials.&lt;/p&gt;

&lt;p&gt;This approach can help you to get some knowledge, but most of the time you learn way less as you have hoped.&lt;/p&gt;

&lt;p&gt;If you really want to learn to code, there is only one right way to do it:&lt;br&gt;
&lt;strong&gt;Find or create a real project, you can work on!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Why is this approach to learning programming a lot better?&lt;br&gt;
In contrast to tutorials or programming books, you will get at some time to a point where you have to find a solution for a problem you can't solve yet.&lt;br&gt;
To get ahead with your project, you have to find a solution to this problem.&lt;br&gt;
Now, you're in a situation where you will learn more about programming and problem solving as if you read through 100 books or watching random tutorials.&lt;/p&gt;

&lt;p&gt;You work with your code and you search for solutions to a real problem.&lt;/p&gt;

&lt;p&gt;Everything you have truly learned in your lifetime, you only have learned because you did it.&lt;br&gt;
Reading through a book or watching random tutorials without directly using the information bring you some information about the topic but you learn nothing.&lt;/p&gt;

&lt;p&gt;It's like watching someone is riding a bike.&lt;br&gt;
You may know how to do it: Step into the pedals and not falling off.&lt;br&gt;
But you don't know how to do it and why it's correct in this or a different way.&lt;/p&gt;

&lt;p&gt;Thanks for reading.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>career</category>
    </item>
    <item>
      <title>Getting started with Flask - "Hello World Wide Web!"</title>
      <dc:creator>Christian Lutz</dc:creator>
      <pubDate>Sun, 07 Apr 2019 20:24:32 +0000</pubDate>
      <link>https://dev.to/chrislutz/getting-started-with-flask-hello-world-wide-web-3gm0</link>
      <guid>https://dev.to/chrislutz/getting-started-with-flask-hello-world-wide-web-3gm0</guid>
      <description>&lt;p&gt;Creating web apps is possibly one of the coolest things you could do in your lifetime. ;)&lt;br&gt;
The reasons are obvious.&lt;br&gt;
You can create something meaningful, everyone can use.&lt;/p&gt;

&lt;p&gt;With some work, you may be creating something like this:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fx6hflc63am2q50lj1lll.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fx6hflc63am2q50lj1lll.png" alt="Picture of ServerMonitor project"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow me to get more information about the &lt;a href="https://github.com/ChristianLutzCL/Website-Monitoring" rel="noopener noreferrer"&gt;ServerMonitor&lt;/a&gt; in the near future.&lt;/p&gt;

&lt;p&gt;Let's get started!&lt;/p&gt;


&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Flask is a lightweight Python web framework based on Werkzeug and Jinja2.&lt;br&gt;
Lightweight means, Flask only has the most basic features to create your web application on your own.&lt;br&gt;
Everything other like admin panels, for example, have to be built from scratch, unlike in Django.&lt;/p&gt;

&lt;p&gt;For starting out in web development with Python, this makes a lot of sense.&lt;br&gt;
You don't have to learn a lot of framework stuff before you can build a web app.&lt;/p&gt;
&lt;h1&gt;
  
  
  Create your project
&lt;/h1&gt;

&lt;p&gt;Make a folder where your Flask project should be located.&lt;br&gt;
You can do this in CMD on Windows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir flask_project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, open your created folder with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd flask_project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Installation
&lt;/h1&gt;

&lt;p&gt;Installing flask via PIP is quite easy.&lt;br&gt;
Simply type...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;pip&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;...to install the Flask module.&lt;/p&gt;

&lt;h1&gt;
  
  
  Setting up the application
&lt;/h1&gt;

&lt;p&gt;After installing Flask, we have to make a Python file.&lt;br&gt;
I will call it 'main.py'&lt;/p&gt;

&lt;p&gt;This file will contain all of the basic code for Flask to run.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nd"&gt;@app.route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;hello_www&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello World Wide Web!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Code explanation
&lt;/h3&gt;

&lt;p&gt;First of all, we import our installed Flask module from Flask with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, we define the variable 'app' and assign "Flask(_ &lt;em&gt;name&lt;/em&gt; _)" to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, we can create our first route with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@app.route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To make it work, we need some return value, that will be displayed on our web page.&lt;/p&gt;

&lt;p&gt;For that, we type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;hello_www&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello World Wide Web!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Last but not least, we will return a String with "Hello World Wide Web!".&lt;/p&gt;

&lt;h1&gt;
  
  
  Run your application
&lt;/h1&gt;

&lt;p&gt;After we have created and saved our code, we want to see the result.&lt;br&gt;
For that, you first need to define your Python file for Flask in this way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set FLASK_APP=main.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If this is done, you can start your web app with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flask run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fzst1ov6ur9gw19gvqr91.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fzst1ov6ur9gw19gvqr91.png" alt="Flask running in CMD"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to &lt;a href="http://localhost:5000" rel="noopener noreferrer"&gt;http://localhost:5000&lt;/a&gt; or &lt;a href="http://127.0.0.1:5000" rel="noopener noreferrer"&gt;http://127.0.0.1:5000&lt;/a&gt;, to see your result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fmcyx6yg1b2ty1tzaz7wg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fmcyx6yg1b2ty1tzaz7wg.png" alt="Your result!"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulations!&lt;br&gt;
You have created your first web app.&lt;/p&gt;

&lt;p&gt;If you want to dive deeper into the Flask-World, visit &lt;a href="http://flask.pocoo.org/" rel="noopener noreferrer"&gt;http://flask.pocoo.org/&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Thank you for reading!
&lt;/h3&gt;

</description>
      <category>python</category>
      <category>webdev</category>
      <category>webapp</category>
      <category>flask</category>
    </item>
  </channel>
</rss>
