initial: addressex initial implemmentation

This commit is contained in:
Joao P Dubas
2024-01-26 14:57:48 +00:00
commit f0e9c1c6d7
17 changed files with 1194 additions and 0 deletions

4
ex/.formatter.exs Normal file
View File

@@ -0,0 +1,4 @@
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]

21
ex/README.md Normal file
View File

@@ -0,0 +1,21 @@
# Addressex
**TODO: Add description**
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `addressex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:addressex, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at <https://hexdocs.pm/addressex>.

18
ex/lib/addressex.ex Normal file
View File

@@ -0,0 +1,18 @@
defmodule Addressex do
@moduledoc """
Documentation for `Addressex`.
"""
@doc """
Hello world.
## Examples
iex> Addressex.hello()
:world
"""
def hello do
:world
end
end

29
ex/mix.exs Normal file
View File

@@ -0,0 +1,29 @@
defmodule Addressex.MixProject do
use Mix.Project
def project do
[
app: :addressex,
version: "0.1.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:expostal, "~> 0.2.0"}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end

3
ex/mix.lock Normal file
View File

@@ -0,0 +1,3 @@
%{
"expostal": {:hex, :expostal, "0.2.0", "d78b292f600ab04cb9f62c8dfcce22ea540da1bdd7a99b002030f4f002d1b83c", [:make, :mix], [], "hexpm", "c812b468ce3467b470cd24e3aaa09169a1909266f6ca102fc667da35ca146e38"},
}

View File

@@ -0,0 +1,8 @@
defmodule AddressexTest do
use ExUnit.Case
doctest Addressex
test "greets the world" do
assert Addressex.hello() == :world
end
end

1
ex/test/test_helper.exs Normal file
View File

@@ -0,0 +1 @@
ExUnit.start()