Imflask is a prototype of simple web application built from Flask (Python), to provide an example of implementing Jinja template engine in Flask web apps on awesome Bootstrap theme: Impact.
-
Make sure Python 3.x and
venv
module are already installed. -
Create Python virtual environment and then activate it as shown in Installing packages using pip and virtual environments tutorial.
-
Let's suppose your working directory right now is your user home directory, so clone the repository:
$ cd $ git clone https://github.com/andisugandi/imflask.git
-
Change working directory to
imflask
:$ cd imflask
-
Create
.env
file:FLASK_ENV="development" FLASK_APP="flaskweb.py"
-
Install Python modules required, and run the server:
$ pip install -r requirements.txt $ flask run
-
Using web browser, go to
http://127.0.0.1:5000
and you'll see the application running.