An Umbrella project developed with the purpose of studying elixir and phoenix.
A banking API where all users have an account and each account has a balance of 1,000.00.
~ MIX_ENV=test mix coveralls
Docker
Docker-compose
Elixir
Erlang
1 ~ mix deps.get
2 ~ mix compile
3 ~ docker-compose up -d
4 ~ mix ecto.create
5 ~ mix ecto.migrate
6 ~ iex -S mix phx.server
|_apps
|_ banking_api
|_ lib
|_ banking_api
|_ accounts
|_ users
https://localhost:4000/api/users/register
{
"name": "name",
"surname": "surname",
"email": "email",
"password": "password"
}
https://localhost:4000/api/accounts/withdraw
{
"id": "15bd914d-dc6b-49ec-a148-826ce5a38c5a",
"value": "1"
}
https://localhost:4000/api/accounts/transaction
{
"from": "115bd581-bb8f-4a29-9fe0-7375069676e1",
"to": "c0775d87-6bef-45e2-b051-d5715d81c689",
"value": "1"
}