diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..755b605 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/_build +/cover +/deps +erl_crash.dump +*.ez diff --git a/README.md b/README.md new file mode 100644 index 0000000..a262484 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Tarantool + +**Tarantool client for Elixir projects** + +## Installation + +If [available in Hex](https://hex.pm/docs/publish), the package can be installed as: + + 1. Add tarantool to your list of dependencies in `mix.exs`: + + def deps do + [{:tarantool, "~> 0.0.1"}] + end + + 2. Ensure tarantool is started before your application: + + def application do + [applications: [:tarantool]] + end + diff --git a/config/config.exs b/config/config.exs new file mode 100644 index 0000000..031cb08 --- /dev/null +++ b/config/config.exs @@ -0,0 +1,30 @@ +# This file is responsible for configuring your application +# and its dependencies with the aid of the Mix.Config module. +use Mix.Config + +# This configuration is loaded before any dependency and is restricted +# to this project. If another project depends on this project, this +# file won't be loaded nor affect the parent project. For this reason, +# if you want to provide default values for your application for +# 3rd-party users, it should be done in your "mix.exs" file. + +# You can configure for your application as: +# +# config :tarantool, key: :value +# +# And access this configuration in your application as: +# +# Application.get_env(:tarantool, :key) +# +# Or configure a 3rd-party app: +# +# config :logger, level: :info +# + +# It is also possible to import configuration files, relative to this +# directory. For example, you can emulate configuration per environment +# by uncommenting the line below and defining dev.exs, test.exs and such. +# Configuration from the imported file will override the ones defined +# here (which is why it is important to import them last). +# +# import_config "#{Mix.env}.exs" diff --git a/lib/tarantool.ex b/lib/tarantool.ex new file mode 100644 index 0000000..1717879 --- /dev/null +++ b/lib/tarantool.ex @@ -0,0 +1,2 @@ +defmodule Tarantool do +end diff --git a/mix.exs b/mix.exs new file mode 100644 index 0000000..3ac1ce8 --- /dev/null +++ b/mix.exs @@ -0,0 +1,32 @@ +defmodule Tarantool.Mixfile do + use Mix.Project + + def project do + [app: :tarantool, + version: "0.0.1", + elixir: "~> 1.2", + build_embedded: Mix.env == :prod, + start_permanent: Mix.env == :prod, + deps: deps] + end + + # Configuration for the OTP application + # + # Type "mix help compile.app" for more information + def application do + [applications: [:logger]] + end + + # Dependencies can be Hex packages: + # + # {:mydep, "~> 0.3.0"} + # + # Or git/path repositories: + # + # {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"} + # + # Type "mix help deps" for more examples and options + defp deps do + [] + end +end diff --git a/test/tarantool_test.exs b/test/tarantool_test.exs new file mode 100644 index 0000000..4bf0b6f --- /dev/null +++ b/test/tarantool_test.exs @@ -0,0 +1,8 @@ +defmodule TarantoolTest do + use ExUnit.Case + doctest Tarantool + + test "the truth" do + assert 1 + 1 == 2 + end +end diff --git a/test/test_helper.exs b/test/test_helper.exs new file mode 100644 index 0000000..869559e --- /dev/null +++ b/test/test_helper.exs @@ -0,0 +1 @@ +ExUnit.start()