{"id":19723615,"url":"https://github.com/nitrogen/simple_bridge_demo","last_synced_at":"2025-09-10T04:34:01.904Z","repository":{"id":18159026,"uuid":"21257060","full_name":"nitrogen/simple_bridge_demo","owner":"nitrogen","description":"A handful of demo modules for interfacing with SimpleBridge","archived":false,"fork":false,"pushed_at":"2020-06-16T21:52:49.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T16:37:41.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/nitrogen.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-26T22:29:35.000Z","updated_at":"2020-06-16T21:52:52.000Z","dependencies_parsed_at":"2022-08-28T05:21:26.226Z","dependency_job_id":null,"html_url":"https://github.com/nitrogen/simple_bridge_demo","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/nitrogen%2Fsimple_bridge_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fsimple_bridge_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fsimple_bridge_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrogen%2Fsimple_bridge_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrogen","download_url":"https://codeload.github.com/nitrogen/simple_bridge_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241045474,"owners_count":19899654,"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-11-11T23:22:53.841Z","updated_at":"2025-02-27T18:43:39.800Z","avatar_url":"https://github.com/nitrogen.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleBridge Demo Modules\n\nContained here is a very simple collection of\n[SimpleBridge](https://github.com/nitrogen/simple_bridge) sample modules\ndemonstrating basic usage of SimpleBridge 2.0.\n\nEach demo consists of two variations: a standard version and a parameterized\nmodule version (files ending with `_pmod`)\n\n## demo.erl (and demo_pmod.erl)\n\nThe basic \"Hello world\" app\n\n## demo2.erl (and demo2_pmod.erl)\n\nA two-page app (and a 404 page). The index page contains a form with a textbox\nto enter your name. Submitting the form redirects the user to `/show` which\nwill simply retrieve the POST variable and display the user's name.\n\n## demo3.erl (and demo3_pmod.erl)\n\nJust like `demo2`, `demo3` starts with a simple form that asks your name.\nExcept when you submit the form, it redirects to `/chat` which contains a\nsimple websocket-enabled chatroom.  This chat system uses a hyper-simple `chat`\nmodule which is a simple `gen_server`.\n\n## Changing backend servers\n\nTo change a backend server, you're going to need to do two things:\n\n1. Modify the `Makefile` to make sure the program is launching with the\n   appropriate server (inets, cowboy, mochiweb, yaws, webmachine).\n2. Modify `rebar.config` to add the appropriate dependencies.  The current\n   rebar.config has options commented out for each server.\n\n## Running each demo\n\nTo run each demo, run `make`, then run either `make run`, `make run2` or `make\nrun3` to run each demo.\n\n## Slides to accompany this\n\nSlides accompanying this talk can be found at\nhttp://slides.sigma-star.com/view/SimpleBridge-Full\n\n## Copyright\n\nCopyright (c) 2014, [Jesse Gumm](http://github.com/choptastic) ([@jessegumm](http://twitter.com/jessegumm))\n\nReleased under [MIT License](http://github.com/nitrogen/simple_bridge_demo/blob/master/LICENSE)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrogen%2Fsimple_bridge_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrogen%2Fsimple_bridge_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrogen%2Fsimple_bridge_demo/lists"}