Flask dashboard with Python

codesharedot

codesharedot

Posted on October 1, 2019

Flask dashboard with Python

You can create beautiful web apps with Python. For instance, using Flask dashboards. The module Flask is to make web apps with Python.

But sometimes the installation script on the project page just doesn't work, as it was the case for "flask-argon-dashboard" on my machine.

This is how to fix it for flask-argon-dashboard on Ubuntu Linux.

flask dashboard

Setup

Run these commands in the terminal (Ubuntu/Debian):

sudo apt install python3-virtualenv
sudo apt install git

Clone the repo

$ git clone https://github.com/app-generator/flask-argon-dashboard.git
$ cd flask-argon-dashboard

Initialize and activate a virtualenv:

$ virtualenv -p python3 env
$ source env/bin/activate

Install the dependencies:

$ pip install -r requirements.txt
$ pip install flask_login

Create the database, using Flask shell

$ flask shell
$ >>> from app import db
$ >>> db.create_all()

Start server

Run the development server:

$ flask run

See the running app by visiting http://localhost:5000 in your browser

And there you go! Once opened you can see the dashboard.

Happy coding!

Related links:

💖 💪 🙅 🚩
codesharedot
codesharedot

Posted on October 1, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related