Commit 15a544a2 authored by Miguel Basticioto's avatar Miguel Basticioto
Browse files

initial commit

parents
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
# The directory Mix will write compiled artifacts to.
/_build/
# If you run "mix test --cover", coverage assets end up here.
/cover/
# The directory Mix downloads your dependencies sources to.
/deps/
# Where third-party dependencies like ExDoc output generated docs.
/doc/
# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch
# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump
# Also ignore archive artifacts (built via "mix archive.build").
*.ez
# Ignore package tarball (built via "mix hex.build").
notification_dispatcher-*.tar
# Temporary files for e.g. tests
/tmp
notification_dispatcher.iml
.idea
# NotificationDispatcher
**TODO: Add description**
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `notification_dispatcher` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:notification_dispatcher, "~> 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/notification_dispatcher](https://hexdocs.pm/notification_dispatcher).
defmodule NotificationDispatcher.Migration do
use Ecto.Migration
def create_notification_messages() do
create table(:notification_messages, primary_key: false) do
add :id, :uuid, primary_key: true
add :title, :string
add :message, :text
add :notification_type, :integer
add :channel, :integer
add :locale, :string
add :dispatch_offsets, :text
timestamps()
end
end
end
\ No newline at end of file
defmodule NotificationDispatcher do
@moduledoc """
Documentation for `NotificationDispatcher`.
"""
def hello do
:world
end
end
defmodule NotificationDispatcher.MixProject do
use Mix.Project
def project do
[
app: :notification_dispatcher,
version: "0.1.0",
elixir: "~> 1.11",
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
[
{:ecto_sql, "~> 3.1"}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end
defmodule NotificationDispatcherTest do
use ExUnit.Case
doctest NotificationDispatcher
test "greets the world" do
assert NotificationDispatcher.hello() == :world
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment