{"id":22545397,"url":"https://github.com/channelstream/channelstream_demos","last_synced_at":"2026-06-24T17:31:34.175Z","repository":{"id":39233626,"uuid":"239309595","full_name":"Channelstream/channelstream_demos","owner":"Channelstream","description":"Demonstrative applications for Channelstream","archived":false,"fork":false,"pushed_at":"2023-02-03T03:36:36.000Z","size":2822,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T09:13:58.246Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Channelstream.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}},"created_at":"2020-02-09T13:30:59.000Z","updated_at":"2022-09-05T09:41:22.000Z","dependencies_parsed_at":"2023-02-18T03:00:38.106Z","dependency_job_id":null,"html_url":"https://github.com/Channelstream/channelstream_demos","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/Channelstream%2Fchannelstream_demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Channelstream%2Fchannelstream_demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Channelstream%2Fchannelstream_demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Channelstream%2Fchannelstream_demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Channelstream","download_url":"https://codeload.github.com/Channelstream/channelstream_demos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245993457,"owners_count":20706565,"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":"2024-12-07T14:09:48.841Z","updated_at":"2026-06-24T17:31:34.129Z","avatar_url":"https://github.com/Channelstream.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demos\n\nThis repository provides demonstrative applications on how to connect with the server\nand send information to clients.\n\nAll demos assume you have Channelstream running with default secrets and ports.\n\nYou have a simple notification demo built on flask:\n\n    cd notification/\n    \n    YOUR_PYTHON_ENV/bin/pip install -r requirements.txt\n    YOUR_PYTHON_ENV/bin/flask run\n\nNow you can open multiple browser windows to http://127.0.0.1:5000/ and test notifications.\n\nThere is also more complex chat application demo included, it showcases\nmultiple channel subscriptions, message edits and user state changing.\n\n    YOUR_PYTHON_ENV/bin/pip install -r requirements.txt\n    YOUR_PYTHON_ENV/bin/python chat/app.py\n\nOpen your browser and point it to following url:\n\n    http://127.0.0.1:6543\n\n# Using docker compose\n\n    docker-compose up\n\n    # for live reload\n    USER_UID=`id -u` USER_GID=`id -g` docker-compose -f docker-compose.yml -f docker-compose.dev.yml up\n\n\n# Using docker manually\n\n    # start the main server\n    docker run --rm -p 8000:8000 -e CHANNELSTREAM_ALLOW_POSTING_FROM=0.0.0.0 channelstream/channelstream:latest\n    \n    # build the demo\n    docker build . -t channelstream_demo\n    \n    # start the demo\n    docker run -ti --rm -p 6543:6543 -e CHANNELSTREAM_URL=http://172.17.0.2:8000 channelstream_demo\n\n# Manual development with reload\n\n    # start the main server\n    docker run --rm -p 8000:8000 -e CHANNELSTREAM_ALLOW_POSTING_FROM=0.0.0.0 channelstream/channelstream:latest\n    \n    # build the image for landing page backend\n    docker build . -t channelstream_demo\n    \n    # run the backend code with hot reload\n    docker run -ti --rm -p 6543:6543 -e USER_UID=`id -u` -e USER_GID=`id -g` \\\n    -e CHANNELSTREAM_URL=http://172.17.0.2:8000 \\\n    --mount type=bind,source=\"$(pwd)\"/chat,target=/opt/application \\\n    --mount type=bind,source=\"$(pwd)\"/chat/static,target=/opt/application/static \\\n    channelstream_demo\n    \n    # build frontend code builder image\n    docker build . -f Dockerfile.static -t channelstream_demo_statics\n    \n    # run the frontend code with hot reload\n    docker run -ti --rm -e USER_UID=`id -u` -e USER_GID=`id -g` \\\n    -e FRONTEND_ASSSET_ROOT_DIR=/opt/application/static \\\n    --mount type=bind,source=\"$(pwd)\"/chat,target=/opt/application \\\n    --mount type=bind,source=\"$(pwd)\"/chat/static,target=/opt/application/static \\\n    channelstream_demo_statics\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchannelstream%2Fchannelstream_demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchannelstream%2Fchannelstream_demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchannelstream%2Fchannelstream_demos/lists"}