Created
March 28, 2016 14:35
-
-
Save NikitaMelnikov/177ae80d74398875fcbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Programming/Projects/Python$ mkdir Flask | |
~/Programming/Projects/Python$ cd Flask/ | |
~/Programming/Projects/Python/Flask$ virtualenv app | |
~/Programming/Projects/Python/Flask$. app/bin/activate | |
~/Programming/Projects/Python/Flask$ cd app/ | |
~/Programming/Projects/Python/Flask/app$ cd .. | |
~/Programming/Projects/Python/Flask$ vim hello.py | |
~/Programming/Projects/Python/Flask$ cat hello.py | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World!' | |
if __name__ == '__main__': | |
app.run(host="0.0.0.0") | |
~/Programming/Projects/Python/Flask$ python hello.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment