In an umbrella, there is an elixir app that encapsulates the business logic for a prototype project.
Still in early phase, some “stakeholders” can benefit from a simple form where they can:
- experiment with inserting in-/valid inputs
- see the outputs that the business logic app returns
For this purpose, creating a new Phoenix web project within the umbrella project seems to fit:
$ mix phx.new.web foo --no-brunch
Changing into the new app directory and running
mix phx.server successfully displays the Welcome to Phoenix! page. When running
mix test though, the following error is returned:
** (Mix) Could not load Foo.Repo, error: :nofile. Please configure your app accordingly or pass a repo with the -r option.
Can anyone guide this novice’s path further, please?
- ecto 2.2.7
- phoenix 1.3.0
- elixir 1.5.2
- erlang 20.1