{"id":18518310,"url":"https://github.com/arxiv/admin-webapp","last_synced_at":"2026-02-18T16:31:38.712Z","repository":{"id":60520602,"uuid":"529406119","full_name":"arXiv/admin-webapp","owner":"arXiv","description":"Web app for for admin tools, forms and reports. Replacement for Tapir.","archived":false,"fork":false,"pushed_at":"2024-10-24T05:23:58.000Z","size":3809,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-24T23:23:56.582Z","etag":null,"topics":["arxiv-ce","flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arXiv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-08-26T21:12:08.000Z","updated_at":"2024-06-12T17:50:36.000Z","dependencies_parsed_at":"2023-01-20T16:31:20.590Z","dependency_job_id":"d77a87cb-60db-4cbf-a90c-25df45803d7e","html_url":"https://github.com/arXiv/admin-webapp","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arXiv%2Fadmin-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arXiv%2Fadmin-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arXiv%2Fadmin-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arXiv%2Fadmin-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arXiv","download_url":"https://codeload.github.com/arXiv/admin-webapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248003135,"owners_count":21031735,"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":["arxiv-ce","flask","python"],"created_at":"2024-11-06T17:12:51.857Z","updated_at":"2026-02-18T16:31:38.705Z","avatar_url":"https://github.com/arXiv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# admin-webapp\n\nThis repo provides a web app for for admin tools, forms, reports and APIs.\n\n# How to get started\n```bash\ncd admin-webapp\npip install poetry\npoetry install  # installs to a venv\npoetry shell    # activates the venv\nLOCALHOST_DEV=1 \\\n python create_user.py  # fill out a test user\nLOCALHOST_DEV=1 \\\n FLASK_APP=admin_webapp/app.py \\\n flask run\n```\nYou can go to http://localhost.arxiv.org:5000/login and log in with the user and pw you just created.\n\nTo use with MySQL:\n\n```bash\npoetry shell\nREDIS_FAKE=True FLASK_DEBUG=True FLASK_APP=admin_webapp/app.py \\\n CLASSIC_DATABASE_URI=mysql+mysqldb://[USERNAME]:[PASSWORD]@localhost:3306/[DATABASE] \\\n flask run\n```\nSet the username, password, and database to whatever you're using. If\nthe DB tables do not already exist, you will need to be able to\ncreate tables. Conventional read/write access should be sufficient.\n\nYou should be able to go to a page like  http://localhost:5000/login  or  http://localhost:5000/register\n\nWhile developing, it's best to open up dev.arxiv.org/admin for legacy Tapir so you can make changes freely. In some cases it can be helpful to open up production Tapir at arxiv.org/admin, but tread carefully so you don't unintentionally modify a user profile. In most cases, however, there isn't too much to worry about.\n\n# Database Schema\n\nSince there are several db schemata running around, this application makes some assumptions. They are a) a Moderators table in associative_tables.py in `arxiv-db` cannot exist and b) in the tapir_users.py file in `arxiv-db` the tapir_nickanames field needs to be one to one which means `useList` needs to be set to `false`.\n\n# Running the tests\n\nAfter setting up you should be able to run the tests with\n`pytest`. This will create a sqlite db in a file and use that during\ntesting.\n\n# Contributing\nSee [CONTRIBUTING](./CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxiv%2Fadmin-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farxiv%2Fadmin-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxiv%2Fadmin-webapp/lists"}