You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flask is an app that behaves like a web server: it exposes (publishes) a group of URLs to the internet (like an API or website).
4
4
5
-
For example, you can use Flask with a domain and expose the following URLs to the internet:
5
+
For example, you can use Flask with a domain and expose the following URLs to the Internet:
6
6
7
7
```txt
8
8
mywebsite.com/home
@@ -12,16 +12,17 @@ mywebsite.com/contact-me
12
12
13
13
Those three URLs exposed by Flask will become your personal website.
14
14
15
-
To create our first server, we need to add the following two lines to our python file that we are going to create (These two lines have to be in every flask project you create to work correctly):
15
+
To create our first server, we need to add the following two lines to our Python file that we are going to create (These two lines have to be in every flask project you create to work correctly):
16
16
17
17
```python
18
18
from flask import Flask
19
19
app = Flask(__name__)
20
20
```
21
+
21
22
## 📝 Instructions:
22
23
23
-
1. On the root of your project create a `src` folder.
24
+
1. On the root of your project, create a `src` folder.
24
25
25
26
2. Inside of it, create a file named `app.py`.
26
27
27
-
3. As instructed above, add the code to create a new flask app.
28
+
3. As instructed above, add the code to create a new Flask app.
0 commit comments