aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/chunked_hello_world/Makefile4
-rw-r--r--examples/chunked_hello_world/src/chunked_hello_world.app.src15
-rw-r--r--examples/compress_response/Makefile4
-rw-r--r--examples/compress_response/src/compress_response.app.src15
-rw-r--r--examples/cookie/Makefile4
-rw-r--r--examples/cookie/src/cookie.app.src16
-rw-r--r--examples/echo_get/Makefile4
-rw-r--r--examples/echo_get/src/echo_get.app.src15
-rw-r--r--examples/echo_post/Makefile4
-rw-r--r--examples/echo_post/src/echo_post.app.src15
-rw-r--r--examples/error_hook/Makefile4
-rw-r--r--examples/error_hook/src/error_hook.app.src15
-rw-r--r--examples/eventsource/Makefile4
-rw-r--r--examples/eventsource/src/eventsource.app.src15
-rw-r--r--examples/hello_world/Makefile4
-rw-r--r--examples/hello_world/src/hello_world.app.src15
-rw-r--r--examples/markdown_middleware/Makefile4
-rw-r--r--examples/markdown_middleware/src/markdown_middleware.app.src15
-rw-r--r--examples/rest_basic_auth/Makefile4
-rw-r--r--examples/rest_basic_auth/src/rest_basic_auth.app.src15
-rw-r--r--examples/rest_hello_world/Makefile4
-rw-r--r--examples/rest_hello_world/src/rest_hello_world.app.src15
-rw-r--r--examples/rest_pastebin/Makefile4
-rw-r--r--examples/rest_pastebin/src/rest_pastebin.app.src15
-rw-r--r--examples/rest_stream_response/Makefile4
-rw-r--r--examples/rest_stream_response/src/rest_stream_response.app.src15
-rw-r--r--examples/ssl_hello_world/Makefile4
-rw-r--r--examples/ssl_hello_world/src/ssl_hello_world.app.src16
-rw-r--r--examples/static_world/Makefile4
-rw-r--r--examples/static_world/src/static_world.app.src15
-rw-r--r--examples/upload/Makefile4
-rw-r--r--examples/upload/src/upload.app.src15
-rw-r--r--examples/web_server/Makefile4
-rw-r--r--examples/web_server/src/web_server.app.src15
-rw-r--r--examples/websocket/Makefile4
-rw-r--r--examples/websocket/src/websocket.app.src15
36 files changed, 72 insertions, 272 deletions
diff --git a/examples/chunked_hello_world/Makefile b/examples/chunked_hello_world/Makefile
index 38cd6dc..00ac80d 100644
--- a/examples/chunked_hello_world/Makefile
+++ b/examples/chunked_hello_world/Makefile
@@ -1,4 +1,8 @@
PROJECT = chunked_hello_world
+PROJECT_DESCRIPTION = Cowboy chunked Hello World example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/chunked_hello_world/src/chunked_hello_world.app.src b/examples/chunked_hello_world/src/chunked_hello_world.app.src
deleted file mode 100644
index 3bd7556..0000000
--- a/examples/chunked_hello_world/src/chunked_hello_world.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, chunked_hello_world, [
- {description, "Cowboy Chunked Hello World example."},
- {vsn, "1"},
- {modules, []},
- {registered, [chunked_hello_world_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {chunked_hello_world_app, []}},
- {env, []}
-]}.
diff --git a/examples/compress_response/Makefile b/examples/compress_response/Makefile
index 4d3649f..ab99ced 100644
--- a/examples/compress_response/Makefile
+++ b/examples/compress_response/Makefile
@@ -1,4 +1,8 @@
PROJECT = compress_response
+PROJECT_DESCRIPTION = Cowboy compressed response example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/compress_response/src/compress_response.app.src b/examples/compress_response/src/compress_response.app.src
deleted file mode 100644
index 2f11ef1..0000000
--- a/examples/compress_response/src/compress_response.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, compress_response, [
- {description, "Cowboy Compress Response example."},
- {vsn, "1"},
- {modules, []},
- {registered, [compress_response_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {compress_response_app, []}},
- {env, []}
-]}.
diff --git a/examples/cookie/Makefile b/examples/cookie/Makefile
index 4fc8fb9..f4e593b 100644
--- a/examples/cookie/Makefile
+++ b/examples/cookie/Makefile
@@ -1,4 +1,8 @@
PROJECT = cookie
+PROJECT_DESCRIPTION = Cowboy Cookie example
+PROJECT_VERSION = 1
+
DEPS = cowboy erlydtl
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/cookie/src/cookie.app.src b/examples/cookie/src/cookie.app.src
deleted file mode 100644
index 192d907..0000000
--- a/examples/cookie/src/cookie.app.src
+++ /dev/null
@@ -1,16 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, cookie, [
- {description, "Cowboy Cookie example."},
- {vsn, "1"},
- {modules, []},
- {registered, [cookie_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy,
- erlydtl
- ]},
- {mod, {cookie_app, []}},
- {env, []}
-]}.
diff --git a/examples/echo_get/Makefile b/examples/echo_get/Makefile
index 6c7790e..8f5eea8 100644
--- a/examples/echo_get/Makefile
+++ b/examples/echo_get/Makefile
@@ -1,4 +1,8 @@
PROJECT = echo_get
+PROJECT_DESCRIPTION = Cowboy GET echo example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/echo_get/src/echo_get.app.src b/examples/echo_get/src/echo_get.app.src
deleted file mode 100644
index fd5646c..0000000
--- a/examples/echo_get/src/echo_get.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, echo_get, [
- {description, "Cowboy GET echo example."},
- {vsn, "1"},
- {modules, []},
- {registered, [echo_get_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {echo_get_app, []}},
- {env, []}
-]}.
diff --git a/examples/echo_post/Makefile b/examples/echo_post/Makefile
index ddf3969..3b3c3ba 100644
--- a/examples/echo_post/Makefile
+++ b/examples/echo_post/Makefile
@@ -1,4 +1,8 @@
PROJECT = echo_post
+PROJECT_DESCRIPTION = Cowboy POST echo example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/echo_post/src/echo_post.app.src b/examples/echo_post/src/echo_post.app.src
deleted file mode 100644
index 92c71ff..0000000
--- a/examples/echo_post/src/echo_post.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, echo_post, [
- {description, "Cowboy POST echo example."},
- {vsn, "1"},
- {modules, []},
- {registered, [echo_post_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {echo_post_app, []}},
- {env, []}
-]}.
diff --git a/examples/error_hook/Makefile b/examples/error_hook/Makefile
index 73242df..17fe836 100644
--- a/examples/error_hook/Makefile
+++ b/examples/error_hook/Makefile
@@ -1,4 +1,8 @@
PROJECT = error_hook
+PROJECT_DESCRIPTION = Cowboy error handler example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/error_hook/src/error_hook.app.src b/examples/error_hook/src/error_hook.app.src
deleted file mode 100644
index 728fd35..0000000
--- a/examples/error_hook/src/error_hook.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, error_hook, [
- {description, "Cowboy error handler example."},
- {vsn, "1"},
- {modules, []},
- {registered, [error_hook_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {error_hook_app, []}},
- {env, []}
-]}.
diff --git a/examples/eventsource/Makefile b/examples/eventsource/Makefile
index fbd3fb9..a2e6962 100644
--- a/examples/eventsource/Makefile
+++ b/examples/eventsource/Makefile
@@ -1,4 +1,8 @@
PROJECT = eventsource
+PROJECT_DESCRIPTION = Cowboy EventSource example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/eventsource/src/eventsource.app.src b/examples/eventsource/src/eventsource.app.src
deleted file mode 100644
index 5018168..0000000
--- a/examples/eventsource/src/eventsource.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, eventsource, [
- {description, "Cowboy EventSource example."},
- {vsn, "1"},
- {modules, []},
- {registered, [eventsource_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {eventsource_app, []}},
- {env, []}
-]}.
diff --git a/examples/hello_world/Makefile b/examples/hello_world/Makefile
index 1a7000b..85ef7ed 100644
--- a/examples/hello_world/Makefile
+++ b/examples/hello_world/Makefile
@@ -1,4 +1,8 @@
PROJECT = hello_world
+PROJECT_DESCRIPTION = Cowboy Hello World example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/hello_world/src/hello_world.app.src b/examples/hello_world/src/hello_world.app.src
deleted file mode 100644
index 7512a2f..0000000
--- a/examples/hello_world/src/hello_world.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, hello_world, [
- {description, "Cowboy Hello World example."},
- {vsn, "1"},
- {modules, []},
- {registered, [hello_world_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {hello_world_app, []}},
- {env, []}
-]}.
diff --git a/examples/markdown_middleware/Makefile b/examples/markdown_middleware/Makefile
index ab2fbd6..2087cf3 100644
--- a/examples/markdown_middleware/Makefile
+++ b/examples/markdown_middleware/Makefile
@@ -1,4 +1,8 @@
PROJECT = markdown_middleware
+PROJECT_DESCRIPTION = Cowboy static file handler example with middleware component
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/markdown_middleware/src/markdown_middleware.app.src b/examples/markdown_middleware/src/markdown_middleware.app.src
deleted file mode 100644
index 56f26af..0000000
--- a/examples/markdown_middleware/src/markdown_middleware.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, markdown_middleware, [
- {description, "Cowboy static file handler example with middleware component."},
- {vsn, "1"},
- {modules, []},
- {registered, [markdown_middleware_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {markdown_middleware_app, []}},
- {env, []}
-]}.
diff --git a/examples/rest_basic_auth/Makefile b/examples/rest_basic_auth/Makefile
index b776235..174eacc 100644
--- a/examples/rest_basic_auth/Makefile
+++ b/examples/rest_basic_auth/Makefile
@@ -1,4 +1,8 @@
PROJECT = rest_basic_auth
+PROJECT_DESCRIPTION = Cowboy Basic HTTP Authorization example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/rest_basic_auth/src/rest_basic_auth.app.src b/examples/rest_basic_auth/src/rest_basic_auth.app.src
deleted file mode 100644
index c5f836b..0000000
--- a/examples/rest_basic_auth/src/rest_basic_auth.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_basic_auth, [
- {description, "Cowboy Basic HTTP Authorization example."},
- {vsn, "1"},
- {modules, []},
- {registered, [rest_basic_auth_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {rest_basic_auth_app, []}},
- {env, []}
-]}.
diff --git a/examples/rest_hello_world/Makefile b/examples/rest_hello_world/Makefile
index cc7699e..d32551b 100644
--- a/examples/rest_hello_world/Makefile
+++ b/examples/rest_hello_world/Makefile
@@ -1,4 +1,8 @@
PROJECT = rest_hello_world
+PROJECT_DESCRIPTION = Cowboy REST Hello World example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/rest_hello_world/src/rest_hello_world.app.src b/examples/rest_hello_world/src/rest_hello_world.app.src
deleted file mode 100644
index 0c786e8..0000000
--- a/examples/rest_hello_world/src/rest_hello_world.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_hello_world, [
- {description, "Cowboy REST Hello World example."},
- {vsn, "1"},
- {modules, []},
- {registered, [rest_hello_world_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {rest_hello_world_app, []}},
- {env, []}
-]}.
diff --git a/examples/rest_pastebin/Makefile b/examples/rest_pastebin/Makefile
index 66c7b33..5c7a315 100644
--- a/examples/rest_pastebin/Makefile
+++ b/examples/rest_pastebin/Makefile
@@ -1,4 +1,8 @@
PROJECT = rest_pastebin
+PROJECT_DESCRIPTION = Cowboy REST Pastebin example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/rest_pastebin/src/rest_pastebin.app.src b/examples/rest_pastebin/src/rest_pastebin.app.src
deleted file mode 100644
index aae6146..0000000
--- a/examples/rest_pastebin/src/rest_pastebin.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_pastebin, [
- {description, "Cowboy REST Pastebin example inspired by sprunge."},
- {vsn, "1"},
- {modules, []},
- {registered, [rest_pastebin_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {rest_pastebin_app, []}},
- {env, []}
-]}.
diff --git a/examples/rest_stream_response/Makefile b/examples/rest_stream_response/Makefile
index 86aa2f5..5de48d4 100644
--- a/examples/rest_stream_response/Makefile
+++ b/examples/rest_stream_response/Makefile
@@ -1,4 +1,8 @@
PROJECT = rest_stream_response
+PROJECT_DESCRIPTION = Cowboy REST example with streaming
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/rest_stream_response/src/rest_stream_response.app.src b/examples/rest_stream_response/src/rest_stream_response.app.src
deleted file mode 100644
index bf734ab..0000000
--- a/examples/rest_stream_response/src/rest_stream_response.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_stream_response, [
- {description, "Cowboy REST with streaming."},
- {vsn, "1"},
- {modules, []},
- {registered, [rest_stream_response_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {rest_stream_response_app, []}},
- {env, []}
-]}.
diff --git a/examples/ssl_hello_world/Makefile b/examples/ssl_hello_world/Makefile
index 720f998..c12fdcc 100644
--- a/examples/ssl_hello_world/Makefile
+++ b/examples/ssl_hello_world/Makefile
@@ -1,4 +1,8 @@
PROJECT = ssl_hello_world
+PROJECT_DESCRIPTION = Cowboy SSL Hello World example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/ssl_hello_world/src/ssl_hello_world.app.src b/examples/ssl_hello_world/src/ssl_hello_world.app.src
deleted file mode 100644
index 30faecb..0000000
--- a/examples/ssl_hello_world/src/ssl_hello_world.app.src
+++ /dev/null
@@ -1,16 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, ssl_hello_world, [
- {description, "Cowboy Hello World example with SSL."},
- {vsn, "1"},
- {modules, []},
- {registered, [ssl_hello_world_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy,
- ssl
- ]},
- {mod, {ssl_hello_world_app, []}},
- {env, []}
-]}.
diff --git a/examples/static_world/Makefile b/examples/static_world/Makefile
index 7524b77..47c1094 100644
--- a/examples/static_world/Makefile
+++ b/examples/static_world/Makefile
@@ -1,4 +1,8 @@
PROJECT = static_world
+PROJECT_DESCRIPTION = Cowboy static file handler example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/static_world/src/static_world.app.src b/examples/static_world/src/static_world.app.src
deleted file mode 100644
index 879801d..0000000
--- a/examples/static_world/src/static_world.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, static_world, [
- {description, "Cowboy static file handler example."},
- {vsn, "1"},
- {modules, []},
- {registered, [static_world_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {static_world_app, []}},
- {env, []}
-]}.
diff --git a/examples/upload/Makefile b/examples/upload/Makefile
index ca6b0c6..2caea71 100644
--- a/examples/upload/Makefile
+++ b/examples/upload/Makefile
@@ -1,4 +1,8 @@
PROJECT = upload
+PROJECT_DESCRIPTION = Cowboy multipart upload example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/upload/src/upload.app.src b/examples/upload/src/upload.app.src
deleted file mode 100644
index 2325935..0000000
--- a/examples/upload/src/upload.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, upload, [
- {description, "Cowboy multipart upload example."},
- {vsn, "1"},
- {modules, []},
- {registered, [upload_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {upload_app, []}},
- {env, []}
-]}.
diff --git a/examples/web_server/Makefile b/examples/web_server/Makefile
index b794f30..749a69d 100644
--- a/examples/web_server/Makefile
+++ b/examples/web_server/Makefile
@@ -1,4 +1,8 @@
PROJECT = web_server
+PROJECT_DESCRIPTION = Cowboy static directory indexing example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/web_server/src/web_server.app.src b/examples/web_server/src/web_server.app.src
deleted file mode 100644
index f503422..0000000
--- a/examples/web_server/src/web_server.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, web_server, [
- {description, "Cowboy static file handler with directory indexes."},
- {vsn, "1"},
- {modules, []},
- {registered, [web_server_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {web_server_app, []}},
- {env, []}
-]}.
diff --git a/examples/websocket/Makefile b/examples/websocket/Makefile
index b590e79..60059f8 100644
--- a/examples/websocket/Makefile
+++ b/examples/websocket/Makefile
@@ -1,4 +1,8 @@
PROJECT = websocket
+PROJECT_DESCRIPTION = Cowboy Websocket example
+PROJECT_VERSION = 1
+
DEPS = cowboy
dep_cowboy = git https://github.com/ninenines/cowboy master
+
include ../../erlang.mk
diff --git a/examples/websocket/src/websocket.app.src b/examples/websocket/src/websocket.app.src
deleted file mode 100644
index c6ada82..0000000
--- a/examples/websocket/src/websocket.app.src
+++ /dev/null
@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, websocket, [
- {description, "Cowboy websocket example."},
- {vsn, "1"},
- {modules, []},
- {registered, [websocket_sup]},
- {applications, [
- kernel,
- stdlib,
- cowboy
- ]},
- {mod, {websocket_app, []}},
- {env, []}
-]}.