Skip to content

Authenticated user sees an updated dashboard with functional vertical navigational sidebar

Notifications You must be signed in to change notification settings

GitauHarrison/simple-dashboard-in-flask

Repository files navigation

Simple Dashboard in Flask

This is a very simple dashboard in flask. Basically, the content seen by an anonymous user is contained by bootstrap's class container. However, upon authentication, the content is not contained and a functional sidebar is provided.

Flask Dashboard

Check out the other sample dashboards:

Features

  • User authentication

Tools Used

  • Flask
  • Python
  • Flask SQLAlchemy
  • Flask Bootstrap
  • Flask Migrate
  • Flask-Login
  • Flask-WTF

Testing the Application Locally

  • Clone this repository:
    git clone git@github.com:GitauHarrison/simple-dashboard-in-flask.git
  • Move into the directory:
    cd simple-dashboard-in-flask
  • Create and activate a virtual environment:
    $ virtualenv venv
    $ source venv/bin/activate
    
    # or (if you prefer using virtualenvwrapper)
    # $ mkvirtualenv venv
  • Install dependencies within the virtual environment:
    (venv)$ pip3 install -r requirements.txt
  • Needed environment variables:
    • Create a file called .env in the root directory of the project.
      (venv)$ touch .env
    • Add the following lines to the file:
      SECRET_KEY=<your secret key>
      • Best to create the value of SECRET_KEY by running python -c "import os; print(os.urandom(24))" in your terminal.
  • Start the flask server:
    (venv)$ flask run
  • Access the application on your browser using the link http://localhost:5000

Cheers!

About

Authenticated user sees an updated dashboard with functional vertical navigational sidebar

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published