{"id":15691867,"url":"https://github.com/xymbol/otp-examples","last_synced_at":"2025-05-08T02:15:41.636Z","repository":{"id":81457971,"uuid":"88553438","full_name":"xymbol/otp-examples","owner":"xymbol","description":"Code examples for the “OTP, Concurrency and Testing Strategies” talk, as presented in Montreal Elixir, April 12th, 2017.","archived":false,"fork":false,"pushed_at":"2017-05-30T14:07:24.000Z","size":71,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-08T02:15:36.247Z","etag":null,"topics":["elixir","otp","test-driven-development"],"latest_commit_sha":null,"homepage":"https://speakerdeck.com/xymbol/otp-concurrency-and-testing-strategies","language":"Elixir","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/xymbol.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":"2017-04-17T21:44:17.000Z","updated_at":"2023-04-03T19:03:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9e30b7f-b4fa-49a4-be91-07c516bff4dc","html_url":"https://github.com/xymbol/otp-examples","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/xymbol%2Fotp-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xymbol%2Fotp-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xymbol%2Fotp-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xymbol%2Fotp-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xymbol","download_url":"https://codeload.github.com/xymbol/otp-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252983775,"owners_count":21835765,"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":["elixir","otp","test-driven-development"],"created_at":"2024-10-03T18:25:00.330Z","updated_at":"2025-05-08T02:15:41.608Z","avatar_url":"https://github.com/xymbol.png","language":"Elixir","readme":"# Server examples in Elixir with tests\n\n[![Build Status](https://travis-ci.org/xymbol/otp-examples.svg?branch=master)](https://travis-ci.org/xymbol/otp-examples)\n\nA number of code examples with accompanying tests written for the “OTP,\nConcurrency and Testing Strategies” talk,\n[presented](https://www.meetup.com/montrealelixir/events/238411707/) in Montreal\nElixir, April 12th, 2017. Slides are\n[available](https://speakerdeck.com/xymbol/otp-concurrency-and-testing-strategies)\nfor this talk.\n\n## What's included\n\n* [`adder`](adder): server to add values and return total\n* [`blog`](blog): counter server added to a Phoenix app\n* [`calculator`](calculator): simple stack calculator server\n* [`counter`](counter): shared counter server\n* [`stack`](stack): stack server using only primitives\n* [`tick`](tick): server to demonstrate timed sends\n* [`writer`](writer): file writer and reader server\n\n## How to use interactively\n\nFor each example, do `iex -S mix` from the project folder:\n\n```elixir\niex\u003e {:ok, pid} = Counter.start_link\niex\u003e Counter.read pid\niex\u003e Counter.stop pid\n```\n\n## How to run tests\n\nFor each example, do `mix test` to run tests. To run all tests in all examples,\ndo `mix test` from the parent folder.\n\n## Author\n\n[Adrián Mugnolo](https://github.com/xymbol)\n\n## License\n\nThese examples are released under the MIT license. See [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxymbol%2Fotp-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxymbol%2Fotp-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxymbol%2Fotp-examples/lists"}