GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ohtu2021-kvantti/WebMark: Web platform for benchmarking quantum computing algorithms

BranchesTags
Open more actions menu

Latest commit

 

History

545 Commits
545 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
BenchMark
BenchMark
 
 
RabbitMQ
RabbitMQ
 
 
WebCLI
WebCLI
 
 
WebMark
WebMark
 
 
docs
docs
 
 
nginx
nginx
 
 
static
static
 
 
templates
templates
 
 
.env.example
.env.example
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
Dockerfile-prod
Dockerfile-prod
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose-prod.yml
docker-compose-prod.yml
 
 
docker-compose-staging.yml
docker-compose-staging.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
manage.py
manage.py
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

WebMark

Python package codecov Maintainability

Web platform for benchmarking quantum computing algorithms.

Documentation

Architecture

Requirements

See requirements.txt

Setting up the development environment using Docker (recommended)

Install Docker Engine and Docker Compose according to the instructions.

Navigate to the project root and run the development environment with command:

sudo docker-compose up

In case new dependencies have been added to any of the environments (that is requirements.txt or environment.yml have been changed), start the development environment with

sudo docker-compose up --build

If the database needs to be flushed, the easiest way to do that is with command

sudo docker-compose down

Setting up the development environment manually (not recommended)

Set up the database

Install PostgreSQL:

sudo apt install postgresql postgresql-contrib libpq-dev python3-dev

Create a database:

sudo -u postgres psql
postgres=# create database quantdb;
postgres=# create user quantuser with encrypted password 'secret';
postgres=# grant all privileges on database quantdb to quantuser;
postgres=# alter user quantuser createdb; --allow user to create a test database
postgres=# \q

Setting up WebMark

Make a copy of .env.example and rename it to .env.

Create and activate a virtual environment:

python3 -m venv venv
source venv/bin/activate

Install the dependencies:

pip install -r requirements.txt

Now you can run the development server with command:

python manage.py runserver

If you get an error message when running the server, for example "psycopg2.errors.UndefinedTable: relation "WebCLI_algorithm" does not exist" you can try making migrations

python manage.py makemigrations WebCLI
python manage.py migrate

And then run the development server again.

Setting up RabbitMQ

Install RabbitMQ with

sudo apt install -y rabbitmq-server

and start the server with

sudo rabbitmq-server

Setting up BenchMark

Install Miniconda according to the instructions.

Create and activate a Conda environment

cd BenchMark/
conda env create -f environment.yml
conda activate benchmark

Install additional dependencies with pip

pip install -r requirements.txt
pip install git+https://github.com/ohtu2021-kvantti/LibMark.git

Start workers with

celery -A benchmark worker -l info

Other commands


NOTE: all the next commands can be used from Docker with

sudo docker-compose run web <command_name_with_possible_parameters>

For example:

sudo docker-compose run web python manage.py makemigration

Lint your code with

flake8

Lint HTML templates with

curlylint templates/

Run tests

python manage.py test

Run code coverage

coverage erase
coverage run manage.py test
coverage report

Update database after change in models

python manage.py makemigrations
python manage.py migrate

About

Web platform for benchmarking quantum computing algorithms

Resources

Readme
MIT license
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.