Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add Mix Install/Docs, Start/Stop ABCI Server guides #3

Closed
wants to merge 6 commits into from

Conversation

ltfschoen
Copy link

No description provided.

…ke 4.2.1

Previous version of GNU Make 3.81 supported Ranch 1.3.2, but after upgrading to GNU Make 4.2.1 it did not support Ranch 1.3.2, so it was necessary to upgrade to the latest Ranch 1.4.0
@ltfschoen ltfschoen changed the title docs: Add Mix Installation and Documentation generation guide feature: Update Ranch to support GNU Make 4. Add Mix Install and Docs generation guide Jan 27, 2018
@ltfschoen ltfschoen changed the title feature: Update Ranch to support GNU Make 4. Add Mix Install and Docs generation guide feature: Update Ranch for GNU Make 4. Add Mix Install/Docs, Start/Stop ABCI Server guides Jan 27, 2018
@ltfschoen ltfschoen changed the title feature: Update Ranch for GNU Make 4. Add Mix Install/Docs, Start/Stop ABCI Server guides docs: Add Mix Install/Docs, Start/Stop ABCI Server guides Jan 27, 2018
@ltfschoen
Copy link
Author

Based on feedback from @KrzysiekJ in #4 I've modified this Pull Request https://github.com/KrzysiekJ/abci_server/pull/3/files and removed the proposed change to the abci_server's Makefile so it still uses Ranch 1.3.2. The Pull Request now only proposes to modify the Readme and includes a Troubleshooting section that may help other users who encounter the IEx error (Mix) Could not start application ranch: could not find application file: ranch.app by suggesting that they try adding Ranch 1.4.0 to their Mix dependencies.


* Create a Fake Module named Foo
```
iex(1)> defmodule Foo do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module doesn’t implement the abci_app behaviour, so it won’t be able to handle ABCI requests.

<<70, ..., 117, ...>>, {:bar, 0}}
```

* Show ABCI Server Information (using `module_info/1` which is the Erlang equivalent of Elixir's `__info__/1`), Start ABCI Server, Stop ABCI Server
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a generic Erlang function. I don’t see much utility in putting information about this in README.

]
```

* Run the ABCI Server's `start_listener` and `stop_listener` functions
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already written in doc/overview.edoc (though for Erlang).

:ok
```

* Test the Running ABCI Server (Erlang) in separate Bash Terminal Tab - https://github.com/tendermint/abci#tools
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Tendermint-related documentation, no need to duplicate it here.


* Documentation Generation. Open Documentation in Web Browser
```bash
cd deps/abci_server/ && make docs && open doc/index.html && cd ../../
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already covered in the “Documentation” section.


* Install Mix Dependencies
```bash
mix deps.get
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a generic Elixir command, no need to put it here.

@KrzysiekJ
Copy link
Owner

Left some comments. Generally I have a feeling that the docs provided are much redundant, not project-specific. If they get fixed (the current example will not work), they may become valuable as a blog post or tutorial or on wiki. For example, adding Erlang packages as dependencies to Elixir projects (and vice versa) is a generic topic and it should be covered perhaps in Elixir documentation.

@KrzysiekJ KrzysiekJ closed this Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants