Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Empacota tudo em um application.

  • Loading branch information...
commit 73674216fb13cde712f7a668dcb70c1af8f9f077 1 parent 3ff5a63
@carlosbrando authored
Showing with 25 additions and 0 deletions.
  1. +9 −0 chat_system.app
  2. +16 −0 chat_system.erl
View
9 chat_system.app
@@ -0,0 +1,9 @@
+{application, chat_system,
+ [{description, "Chat System"},
+ {vsn, "1.0"},
+ {modules, [chat_client, message_router, misc_server,
+ message_router_sup, message_store, server_util]},
+ {registered, [message_router, message_store]},
+ {applications, [kernel, stdlib, mnesia]},
+ {env, []},
+ {mod, {chat_system, []}}]}.
View
16 chat_system.erl
@@ -0,0 +1,16 @@
+-module(chat_system).
+-author('eduardobrando@gmail.com').
+
+-behaviour(application).
+
+-export([start/0, start/2, stop/1]).
+
+start () ->
+ mnesia:start(),
+ application:start(?MODULE).
+
+start(_Type, _StartArgs) ->
+ message_router_sup:start_link().
+
+stop(_State) ->
+ ok.
Please sign in to comment.
Something went wrong with that request. Please try again.