The applicaiton powers https://browserperfdash.igalia.com and provides a dashboard to analyze browser perofrmance reports. Bots
send in the data via POST
APIs and the application perfroms the number crunching.
Install python3-pip
, python-dev
and virtualenvwrapper
sudo apt-get install python3 python3-pip python3-dev virtualenvwrapper
You can clone it directly from https://github.com/Igalia/browserperfdash
git clone https://github.com/Igalia/browserperfdash
First, some initialization steps. Most of this only needs to be done
one time. You will want to add the command to source
/usr/local/bin/virtualenvwrapper.sh
to your shell startup file
(.bashrc
or .zshrc
) changing the path to virtualenvwrapper.sh
depending on where it was installed by pip
.
export WORKON_HOME=~/Envs
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
Lets create a virtual environment dashboard
for our project
mkvirtualenv -p /usr/bin/python3 dashboard
workon dashboard
All the requirements are mentioned in the file requirements.txt
.
pip install -r requirements.txt
Setup tables in the DB
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
Collect all the static files for fast serving
python manage.py collectstatic
Create browserperfdash/local_settings.py
with local configurations
mv docs/local-settings.py browserperfdash/local_settings.py
python manage.py runserver