Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtadeu committed Oct 9, 2020
0 parents commit 4f3aa78
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/_build/
/cover/
/deps/
/doc/
/.fetch
erl_crash.dump
*.ez
cassandrax-*.tar
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Cassandrax

**TODO: Add description**

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `cassandrax` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:cassandrax, "~> 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/cassandrax](https://hexdocs.pm/cassandrax).

18 changes: 18 additions & 0 deletions lib/cassandrax.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
defmodule Cassandrax do
@moduledoc """
Documentation for `Cassandrax`.
"""

@doc """
Hello world.
## Examples
iex> Cassandrax.hello()
:world
"""
def hello do
:world
end
end
44 changes: 44 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
defmodule Cassandrax.MixProject do
use Mix.Project

@version "0.0.1"
@url "https://github.com/loopsocial/cassandrax"
@maintainers ["Thiago Dias"]

def project do
[
name: "Cassandrax",
app: :cassandrax,
version: @version,
elixir: "~> 1.10",
source_url: @url,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: "An Elixir Cassandra ORM built on top of Xandra driver."
]
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
[
{:xandra, "~> 0.13"}
]
end

defp package do
[
maintainers: @maintainers,
licenses: ["MIT"],
links: %{github: @url},
files: ~w(lib) ++ ~w(CHANGELOG.md LICENSE mix.exs README.md)
]
end
end
5 changes: 5 additions & 0 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%{
"connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [:mix], [], "hexpm", "4a0850c9be22a43af9920a71ab17c051f5f7d45c209e40269a1938832510e4d9"},
"db_connection": {:hex, :db_connection, "2.2.2", "3bbca41b199e1598245b716248964926303b5d4609ff065125ce98bcd368939e", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm", "642af240d8a8affb93b4ba5a6fcd2bbcbdc327e1a524b825d383711536f8070c"},
"xandra": {:hex, :xandra, "0.13.1", "f82866e6c47527f74f35dd3007b5311121852dd861a29ed1613e27ccfaba0102", [:mix], [{:db_connection, "~> 2.0", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.7", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "a2efdb8921e3b694bf3505e40c5ec9d353d8fa3755cec946be7c18b8236d7230"},
}
8 changes: 8 additions & 0 deletions test/cassandrax_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
defmodule CassandraxTest do
use ExUnit.Case
doctest Cassandrax

test "greets the world" do
assert Cassandrax.hello() == :world
end
end
1 change: 1 addition & 0 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ExUnit.start()

0 comments on commit 4f3aa78

Please sign in to comment.