Skip to content

Commit

Permalink
Change bellboy architecture from application to library
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed Feb 14, 2021
1 parent 2ac3630 commit 79e68dc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 113 deletions.
30 changes: 11 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Bellboy - is Erlang HTTP client library for send SMS by different services: Pliv
## Contents
* [Goals](#goals)
* [Build & Run](#build--run)
* [Dialyzer](#dialyzer)
* [Clean Project](#clean-project)
* [Install bellboy to project](#install-bellboy-to-project-rebar3)
* [Erlang Plivo](#erlang-plivo)
Expand All @@ -28,33 +29,24 @@ Bellboy aims to provide a simple way for send SMS by different services by REST
```sh
$ git clone https://github.com/vkatsuba/bellboy.git
$ cd bellboy
$ make
$ wget https://s3.amazonaws.com/rebar3/rebar3
$ chmod u+x ./rebar3
$ ./rebar3 shell
```
# Dialyzer
```sh
$ ./rebar3 dialyzer
```
# Clean Project
```sh
$ make clean
$ ./rebar3 clean
```
# Install bellboy to project: [Rebar3](https://www.rebar3.org/)
* Edit file **rebar.config**:
```
...
```erlang
{deps, [
...
{bellboy, {git, "git://github.com/vkatsuba/bellboy.git", {branch, "master"}}},
...
{bellboy, "0.1.0"},
]}.
...
```
* Edit file ***.app.src**:
```
...
{applications,
[
...,
bellboy,
...
]},
...
```

# Erlang Plivo
Expand Down
3 changes: 0 additions & 3 deletions config/sys.config

This file was deleted.

6 changes: 0 additions & 6 deletions config/vm.args

This file was deleted.

20 changes: 0 additions & 20 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@
{uuid, "1.7.5", {pkg, uuid_erl}}
]}.

%% == Release ==

{relx, [
{release, {bellboy, "0.1.0"}, [bellboy,inets]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}
]}.

%% == Profiles ==

{profiles, [
{prod, [
{relx, [
{dev_mode, false},
{include_erts, true}
]}
]}
]}.
1 change: 0 additions & 1 deletion src/bellboy.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
[{description, "Bellboy is small Erlang client library for send SMS by REST API"},
{vsn, "0.1.0"},
{registered, []},
{mod, {bellboy_app, []}},
{applications,
[kernel,
stdlib,
Expand Down
26 changes: 0 additions & 26 deletions src/bellboy_app.erl

This file was deleted.

38 changes: 0 additions & 38 deletions src/bellboy_sup.erl

This file was deleted.

0 comments on commit 79e68dc

Please sign in to comment.