Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit b65a7a6c3d2444e5bb70abef8c6b1cb1f8d25e85 @goshakkk committed Aug 21, 2012
Showing with 56 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. 0 Procfile
  3. +3 −0 README.md
  4. +6 −0 lib/dynamo_demo.ex
  5. +7 −0 lib/dynamo_demo/app.ex
  6. +21 −0 mix.exs
  7. +5 −0 mix.lock
  8. +9 −0 test/dynamo_demo_test.exs
  9. +2 −0 test/test_helper.exs
@@ -0,0 +1,3 @@
+/ebin
+/deps
+erl_crash.dump
No changes.
@@ -0,0 +1,3 @@
+# DynamoDemo
+
+A simple [dynamo](https://github.com/josevalim/dynamo) application.
@@ -0,0 +1,6 @@
+defmodule DynamoDemo do
+ def start do
+ :ok = :application.start(:dynamo_demo)
+ Dynamo.Cowboy.run DynamoDemo.App
+ end
+end
@@ -0,0 +1,7 @@
+defmodule DynamoDemo.App do
+ use Dynamo.Router
+
+ get "/hello" do
+ conn.resp(200, "Hello World!")
+ end
+end
21 mix.exs
@@ -0,0 +1,21 @@
+defmodule DynamoDemo.Mixfile do
+ use Mix.Project
+
+ def project do
+ [ app: :dynamo_demo,
+ version: "0.0.1",
+ deps: deps ]
+ end
+
+ # Configuration for the OTP application
+ def application do
+ []
+ end
+
+ # Returns the list of dependencies in the format:
+ # { :foobar, "0.1", git: "https://github.com/elixir-lang/foobar.git" }
+ defp deps do
+ [ { :dynamo, git: "https://github.com/josevalim/dynamo.git" },
+ { :cowboy, git: "https://github.com/josevalim/cowboy.git" } ]
+ end
+end
@@ -0,0 +1,5 @@
+[ "cowboy": "9ec5626171e0fb4b1e4bbb7a98f501866d004794",
+ "dynamo": "8072942d5e239db0ab77464ea2265529122f01db",
+ "edown": "35f8296a25d14c5c1e3209399a2c1856700d9d5b",
+ "hackney": "041fdd3af5f2b9b5c2dbf687871def7e9f88cf0c",
+ "mimetypes": "e9dfab5aec98963589ecf13bdfcf0490667a730d" ]
@@ -0,0 +1,9 @@
+Code.require_file "../test_helper", __FILE__
+
+defmodule DynamoDemoTest do
+ use ExUnit.Case
+
+ test "the truth" do
+ assert true
+ end
+end
@@ -0,0 +1,2 @@
+DynamoDemo.start
+ExUnit.start

0 comments on commit b65a7a6

Please sign in to comment.