{"id":19152531,"url":"https://github.com/gesiscss/binder_gallery","last_synced_at":"2025-09-07T01:07:15.569Z","repository":{"id":39846361,"uuid":"166410866","full_name":"gesiscss/binder_gallery","owner":"gesiscss","description":"Binder Gallery for GESIS Notebooks","archived":false,"fork":false,"pushed_at":"2023-05-01T20:32:42.000Z","size":6358,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-19T19:05:17.842Z","etag":null,"topics":["binder","gallery","gesis-binder"],"latest_commit_sha":null,"homepage":"https://notebooks.gesis.org/gallery/","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/gesiscss.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,"zenodo":null}},"created_at":"2019-01-18T13:39:55.000Z","updated_at":"2023-02-16T16:13:25.000Z","dependencies_parsed_at":"2025-04-20T14:46:48.725Z","dependency_job_id":null,"html_url":"https://github.com/gesiscss/binder_gallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2Fbinder_gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2Fbinder_gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2Fbinder_gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2Fbinder_gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gesiscss","download_url":"https://codeload.github.com/gesiscss/binder_gallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823685,"owners_count":21809707,"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":["binder","gallery","gesis-binder"],"created_at":"2024-11-09T08:18:17.100Z","updated_at":"2025-05-07T05:47:22.268Z","avatar_url":"https://github.com/gesiscss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binder Gallery\n\nBinder Gallery for [GESIS Notebooks](https://notebooks.gesis.org/)\n\n## Run the gallery locally\n\n1. Clone the repository and get into it\n    ```bash\n    git clone https://github.com/gesiscss/binder_gallery.git\n    cd binder_gallery\n    ```\n\n2. [Create and activate a virtual environment](http://flask.pocoo.org/docs/1.0/installation/#virtual-environments)\nwith python version at least 3.7.\n\n3. Install dependencies: \n    ```bash\n    pip install -r dev_requirements.txt\n    ```\n    \n4. Set required environment variables\n    ```bash\n    export FLASK_APP=binder_gallery\n    export FLASK_ENV=development\n    # for windows\n    set FLASK_APP=binder_gallery\n    set FLASK_ENV=development\n    ```\n\n5. Create a local sqlite3 db and apply migrations\n    ```bash\n    python manage.py db upgrade\n    ```\n\n6. Run the application\n    ```bash\n    flask run\n    ```\n### Create user\n\n1. With `create-user` command:\n\n    ```bash\n    flask create-user \u003cname\u003e \u003cpassword\u003e\n    ```\n\n2. With flask shell:\n\n    2.1. Start a flask shell\n\n    ```bash\n    flask shell\n    ```\n\n    2.2. Run this code to create a user:\n   \n    ```python\n    from binder_gallery.models import User\n    User.create_user(\"name\", \"password\")\n    ```\n\n## To have custom configuration\n\n1. Create a config file `local_config.py` under project folder `binder_gallery`\n\n2. Put your custom configuration:\n\n```python\nfrom config import Config as BaseConfig\n\n\nclass Config(BaseConfig):\n    # add your custom configuration here\n```\n\n3. Define the env variable for custom config:\n\n```bash\nexport BG_APPLICATION_SETTINGS=local_config.Config\n# for windows\nset BG_APPLICATION_SETTINGS=local_config.Config\n```\n\n## TODOs\n\n1. Remove GESIS related parts (templates, static files...)?\n\n---\n\nFunded by the German Research Foundation (DFG).\nFKZ/project number:\n[324867496](https://gepris.dfg.de/gepris/projekt/324867496?context=projekt\u0026task=showDetail\u0026id=324867496\u0026).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesiscss%2Fbinder_gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgesiscss%2Fbinder_gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesiscss%2Fbinder_gallery/lists"}