{"id":23859210,"url":"https://github.com/openconext/openconext-statistics","last_synced_at":"2025-08-07T23:15:00.051Z","repository":{"id":33900897,"uuid":"136477092","full_name":"OpenConext/OpenConext-statistics","owner":"OpenConext","description":"Statistics","archived":false,"fork":false,"pushed_at":"2024-12-24T04:13:19.000Z","size":3277,"stargazers_count":0,"open_issues_count":26,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-03T03:35:05.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenConext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-07T12:53:33.000Z","updated_at":"2024-10-18T07:42:44.000Z","dependencies_parsed_at":"2024-03-24T10:25:44.256Z","dependency_job_id":"0ab49b34-37d1-4e08-a0f7-4f0ba6266bf6","html_url":"https://github.com/OpenConext/OpenConext-statistics","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FOpenConext-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FOpenConext-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FOpenConext-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FOpenConext-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenConext","download_url":"https://codeload.github.com/OpenConext/OpenConext-statistics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240163548,"owners_count":19758028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-03T03:32:51.506Z","updated_at":"2025-02-22T10:53:44.229Z","avatar_url":"https://github.com/OpenConext.png","language":"JavaScript","readme":"# OpenConext-Statistics\n[![Build Status](https://travis-ci.org/OpenConext/OpenConext-statistics.svg)](https://travis-ci.org/OpenConext/OpenConext-statistics)\n[![codecov.io](https://codecov.io/github/OpenConext/OpenConext-statistics/coverage.svg)](https://codecov.io/github/OpenConext/OpenConext-statistics)\n\nThis project contains the Statistics API to retrieve OpenConext login information.\n\n### [Overview Requirements](#system-requirements)\n\n- Python 3.9.x\n- InfluxDB v1.8.x\n- Yarn 1.7+\n- node\n\n### [Getting started](#getting-started)\n\nA docker-compose environment is available. You need to replace the following line:\n```\n\"proxy\": \"http://localhost:8080\",\n```\nwith\n```\n\"proxy\": \"http://python:8080\",\n```\nwhen running with docker. Start the docker containers with\n```\ndocker-compose up\n```\nIf you need to rerun pip, you can rebuild the python service container\n```\ndocker-compose build python\n```\n\n\nCreate a virtual environment:\n```\npython3 -m venv .venv\nsource .venv/bin/activate\npip install --upgrade pip\npip install -r ./requirements/test.txt\n```\nEnsure InfluxDb is running and run the Python server:\n```\nPROFILE=local python -m server\n```\nYou can use the (annoying interactive) influx shell when you install the influx-cli\n```\nbrew install influxdb-cli\ninflux v1 shell\nprecision rfc3339\n```\n\nThe GUI can be started with:\n```\ncd client\nyarn start\n```\nTo create a GUI production build to be deployed:\n```\nyarn build\n```\nTo analyze the bundle:\n```\nyarn analyze\n```\n\n### [API](#api)\n\nSee the [Wiki](https://github.com/OpenConext/OpenConext-statistics/wiki) for the API documentation.\n\n### [Testing](#testing)\n\nTo run all Python tests:\n```\nflake8 server\npytest server\n```\nTo generate coverage reports:\n```\npytest --cov=server --cov-report html:htmlcov server/test\nopen htmlcov/index.html\n```\nTo run all JavaScript tests:\n```\ncd client\nyarn test\n```\nOr to run all the tests and do not watch:\n```\ncd client\nCI=true yarn test\n```\n### [Local development](#local-development)\nAdd the following properties to your run configuration for local development:\n```\nCONFIG=config/config.yml;\nPROFILE=local;\nPYDEVD_USE_CYTHON=NO;\nPYDEVD_USE_FRAME_EVAL=NO;\nPYTHONUNBUFFERED=1\n```\n\n### [Upgrade](#upgrade)\n\nSee https://github.com/simion/pip-upgrader for upgrading automatically\n\n```bash\nsource .venv/bin/activate\npip install pip-upgrader\npip-upgrade requirements/test.txt --dry-run\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenconext%2Fopenconext-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenconext%2Fopenconext-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenconext%2Fopenconext-statistics/lists"}