···11+# Used by "mix format"
22+[
33+ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
44+]
+28
.gitignore
···11+# The directory Mix will write compiled artifacts to.
22+/_build/
33+44+# If you run "mix test --cover", coverage assets end up here.
55+/cover/
66+77+# The directory Mix downloads your dependencies sources to.
88+/deps/
99+1010+# Where third-party dependencies like ExDoc output generated docs.
1111+/doc/
1212+1313+# If the VM crashes, it generates a dump, let's ignore it too.
1414+erl_crash.dump
1515+1616+# Also ignore archive artifacts (built via "mix archive.build").
1717+*.ez
1818+1919+# Ignore package tarball (built via "mix hex.build").
2020+drinkup-*.tar
2121+2222+# Temporary files, for example, from tests.
2323+/tmp/
2424+2525+# Nix
2626+.envrc
2727+.direnv
2828+result
+4
README.md
···11+# Drinkup
22+33+Drinkup is an ELixir library for listening to events from an ATProtocol
44+firehose.
···11+defmodule Drinkup do
22+ @moduledoc """
33+ Documentation for `Drinkup`.
44+ """
55+66+ @doc """
77+ Hello world.
88+99+ ## Examples
1010+1111+ iex> Drinkup.hello()
1212+ :world
1313+1414+ """
1515+ def hello do
1616+ :world
1717+ end
1818+end
+28
mix.exs
···11+defmodule Drinkup.MixProject do
22+ use Mix.Project
33+44+ def project do
55+ [
66+ app: :drinkup,
77+ version: "0.1.0",
88+ elixir: "~> 1.18",
99+ start_permanent: Mix.env() == :prod,
1010+ deps: deps()
1111+ ]
1212+ end
1313+1414+ # Run "mix help compile.app" to learn about applications.
1515+ def application do
1616+ [
1717+ extra_applications: [:logger]
1818+ ]
1919+ end
2020+2121+ # Run "mix help deps" to learn about dependencies.
2222+ defp deps do
2323+ [
2424+ # {:dep_from_hexpm, "~> 0.3.0"},
2525+ # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
2626+ ]
2727+ end
2828+end
+8
test/drinkup_test.exs
···11+defmodule DrinkupTest do
22+ use ExUnit.Case
33+ doctest Drinkup
44+55+ test "greets the world" do
66+ assert Drinkup.hello() == :world
77+ end
88+end