tvl-depot/assessments/semiprimes/server/mix.exs
William Carroll 8c5e4e77ed Expose functions at API layer
Creating a simple HTTP RESTful API for exposing our `Server.semiprime`
function. It supports some help messages, primitive parsing and error handling,
and singular vs. batch processing of arguments.

For more sophisticated parsing and error-checking, I prefer to use Haskell's
Servant library.
2020-12-12 02:43:40 +00:00

32 lines
632 B
Elixir

defmodule Server.MixProject do
use Mix.Project
def project do
[
app: :server,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {App, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:cortex, "~> 0.1", only: [:dev, :test]},
{:plug_cowboy, "~> 2.4.1"},
{:cowboy, "~> 2.8.0"},
{:plug, "~> 1.11.0"},
{:poison, "~> 4.0.1"}
]
end
end