Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgaag committed May 24, 2017
0 parents commit 478e617
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
@@ -0,0 +1,20 @@
# 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 3rd-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
18 changes: 18 additions & 0 deletions README.md
@@ -0,0 +1,18 @@
# JsonParser

**TODO: Add description**

## Installation

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

```elixir
def deps do
[{:json_parser, "~> 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/json_parser](https://hexdocs.pm/json_parser).
30 changes: 30 additions & 0 deletions 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 :json_parser, key: :value
#
# And access this configuration in your application as:
#
# Application.get_env(:json_parser, :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"
18 changes: 18 additions & 0 deletions lib/json_parser.ex
@@ -0,0 +1,18 @@
defmodule JsonParser do
@moduledoc """
Documentation for JsonParser.
"""

@doc """
Hello world.
## Examples
iex> JsonParser.hello
:world
"""
def hello do
:world
end
end
33 changes: 33 additions & 0 deletions mix.exs
@@ -0,0 +1,33 @@
defmodule JsonParser.Mixfile do
use Mix.Project

def project do
[app: :json_parser,
version: "0.1.0",
elixir: "~> 1.4",
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
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger]]
end

# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[]
end
end
8 changes: 8 additions & 0 deletions test/json_parser_test.exs
@@ -0,0 +1,8 @@
defmodule JsonParserTest do
use ExUnit.Case
doctest JsonParser

test "the truth" do
assert 1 + 1 == 2
end
end
1 change: 1 addition & 0 deletions test/test_helper.exs
@@ -0,0 +1 @@
ExUnit.start()

0 comments on commit 478e617

Please sign in to comment.