From 2ec17034ee785a9cd5ea23ebddfafbb32ae89d40 Mon Sep 17 00:00:00 2001 From: Muhammad Iqbal Date: Wed, 2 Oct 2019 14:22:32 +0700 Subject: [PATCH 1/4] add flask note --- basic-of-flask | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 basic-of-flask diff --git a/basic-of-flask b/basic-of-flask new file mode 100644 index 0000000..fa006ed --- /dev/null +++ b/basic-of-flask @@ -0,0 +1,55 @@ +## Installing Flask +Install Flask framework and python vitual envoirement +### What is Flask? +According to wikipedia :D, Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. Flask official wesite is available in [**flask.pocoo.org**](http://flask.pocoo.org/) **.** + +### Why Using Flask? +- It's based on Python + +- The Flask "core" is simple + +- Flask is a lighter weight framework for Python + +- Excellent documentation + +- Actively maintained +## Installing Flask-Framework +Before install flask, make sure python is installed in your PC +#### 1. Install Virtualenv +Virtualenv allows you to manage separate package installations for different projects. It essentially allows you to create a “virtual” isolated Python installation and install packages into that virtual installation. Using virtualenv allows you to **avoid installing Python packages globally** which could break system tools or other projects. You can install virtualenv using pip. + +**For Debian or Ubuntu** +``` +$ sudo apt-get install python-virtualenv +``` +**For Mac** +``` +$ sudo pip install virtualenv +``` +**For Windows** +``` +> pip install virtualenv virtualenvwrapper-win +``` +You can simply create a new virtual environment by follow these commands: + + $ mkdir my_flask_app + $ cd my_flask_app + $ virtualenv my_virtualenv_name + +Example: +``` +$ virtualenv venv +``` +And to activating our virtual envoirement that we create recently with thise command bellow: +``` +## unix +$ . ven/bin/activate + +## windows +> venv\Scripts\activate +``` + +#### Install Flask +``` +$ pip install Flask +``` From 85341973111d026ec2a6518b7101f2a50494613a Mon Sep 17 00:00:00 2001 From: iqbal Date: Wed, 2 Oct 2019 14:24:06 +0700 Subject: [PATCH 2/4] add flask note --- basic-of-flask => basic-of-flask.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename basic-of-flask => basic-of-flask.md (100%) diff --git a/basic-of-flask b/basic-of-flask.md similarity index 100% rename from basic-of-flask rename to basic-of-flask.md From d01c339c12fdd578bca635e48491bc2967001286 Mon Sep 17 00:00:00 2001 From: iqbal Date: Wed, 2 Oct 2019 14:29:53 +0700 Subject: [PATCH 3/4] rename --- basic-of-flask.md => simple-flask-restapi-JWT.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename basic-of-flask.md => simple-flask-restapi-JWT.md (100%) diff --git a/basic-of-flask.md b/simple-flask-restapi-JWT.md similarity index 100% rename from basic-of-flask.md rename to simple-flask-restapi-JWT.md From e1a4023f18912ba3a5616822c251a91a0ff2dbfa Mon Sep 17 00:00:00 2001 From: iqbal Date: Wed, 2 Oct 2019 14:32:55 +0700 Subject: [PATCH 4/4] add falsk note --- simple-flask-restapi-JWT.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simple-flask-restapi-JWT.md b/simple-flask-restapi-JWT.md index fa006ed..5017944 100644 --- a/simple-flask-restapi-JWT.md +++ b/simple-flask-restapi-JWT.md @@ -53,3 +53,8 @@ $ . ven/bin/activate ``` $ pip install Flask ``` + +[==> Read more...](https://emixbal.gitbook.io/workspace/) + +> kalo sempet nanti pindah sini semua :) +