https://github.com/exponentially/helios_example
Example CQRS elixir application built with helios framework
https://github.com/exponentially/helios_example
cqrs cqrs-application elixir example-app
Last synced: 7 months ago
JSON representation
Example CQRS elixir application built with helios framework
- Host: GitHub
- URL: https://github.com/exponentially/helios_example
- Owner: exponentially
- Created: 2018-09-27T22:51:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T12:50:05.000Z (over 6 years ago)
- Last Synced: 2025-05-29T19:14:37.822Z (9 months ago)
- Topics: cqrs, cqrs-application, elixir, example-app
- Language: Elixir
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Helios Example Application
Demonstrates capabilities of [helios framework](https://github.com/exponentially/helios)
NOTE: this is still in early development phase, so it may brake sometimes.
## How To Start
You need to install [Eventstore](https://eventstore.org) localy or check
`config/config.exs` and change adapter_config to meet your instalation if eventstore
is available on different network address.
Then clone this repo and run:
```bash
$ mix deps.get
$ mix compile
$ iex --name helios_example_1@127.0.0.1 -S mix helios.server
```
You can run up to 3 instances of this application (libcluster is configured that way).
```bash
$ iex --name helios_example_2@127.0.0.1 -S mix helios.server
```
```bash
$ iex --name helios_example_3@127.0.0.1 -S mix helios.server
```
from any iex console above, check functions that are available in `helios_example.ex` file.
For instance you could run:
```elixir
iex> params = %{"first_name" => "Test", "last_name" => "User", "email" => "email@example.com"}
iex> HeliosExample.Facade.User.create_user(1, params)
{:ok, :created}
```