A micro REST api written in elixir using only plug & cowboy
-
Account creation
-
Get account balance
-
Account Deposit
-
Account withdraw
-
Transfer between accounts
Local Setup
$ make setup
Assuming you already have Docker and Docker Compose installed, run the command below.
$ make build_container
Tests can be be executed:
Local:
$ mix test
Docker:
$ docker-compose run app mix test
Local:
$ make run
Docker:
$ docker-compose run app mix run --no-halt
-
Poison -> decode map to json to json
-
Credo -> Code static code analysis;
-
plug_cowboy -> A Plug Adapter for the Erlang Cowboy web server.
-
Dialyzer -> Code static code analysis.
-
con_cache -> Concurrent Cache to hold state