@enilsen16
├── .gitignore
├── .iex.exs
├── .travis.yml
├── LICENSE.md
├── Procfile
├── README.md
├── _build
│ └── dev
├── app.json
├── apps
│ ├── auth
│ ├── backoffice
│ ├── bank
│ ├── bank_web
│ ├── master_proxy
│ ├── messenger
│ └── money
├── compile
├── config
│ └── config.exs
├── docs
│ ├── diagram.png
│ └── main.md
├── elixir_buildpack.config
├── mix.exs
├── mix.lock
├── phoenix_static_buildpack.config
└── script
└── diagram.exs├── .gitignore
├── .travis.yml
├── Procfile
├── README.md
├── _build
│ ├── dev
│ └── test
├── apps
│ ├── agent_web
│ ├── auth
│ ├── company_web
│ ├── hook
│ ├── master_proxy
│ └── nifty_db
├── compile
├── config
│ └── config.exs
├── elixir_buildpack.config
├── erl_crash.dump
├── mix.exs
├── mix.lock
└── phoenix_static_buildpack.config def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the application starts
supervisor(AgentWeb.Web.Endpoint, []),
# Start your own worker by calling: AgentWeb.Worker.start_link(arg1, arg2, arg3)
# worker(AgentWeb.Worker, [arg1, arg2, arg3]),
]
repo = if :erlang.whereis(NiftyDB.Repo) == :undefined, do: [supervisor(NiftyDB.Repo, [])], else: []
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: AgentWeb.Supervisor]
Supervisor.start_link(children ++ repo ++ guardian_db, opts)
end
You still need to architect correctly :)