Commit 0b9e135a authored by Dmitry Mozzherin's avatar Dmitry Mozzherin
Browse files

Fix #39 docs for contributing

parent 5a68baff
Pipeline #44530979 passed with stages
in 7 minutes and 17 seconds
......@@ -4,7 +4,8 @@
## [v0.7.0]
- Add [#31]: continuous integration
- Add [#39]: documentation for contributors.
- Add [#31]: continuous integration.
- Add [#36]: substitute underscores to spaces for Newick format.
- Add [#34]: escape HTML entities, remove common tags.
- Add [#33]: Web-based user interface and REST API.
# How to contribute to ``gnparser`` project
## **Did you find a bug?**
* **Ensure the bug was not already reported** by searching on GitLab under
* If you're unable to find an open issue addressing the problem, [open a new
one]( Be sure to include a
**title and clear description**, as much relevant information as possible,
and a **code sample** or an **executable test case** demonstrating the
expected behavior that is not occurring.
## **Did you write a patch that fixes a bug?**
* Open a new GitHub pull request with the patch.
* Ensure the PR description clearly describes the problem and solution. Include
the relevant issue number if applicable.
* Clearly state if your PR is a proof of concept and what needs to be done to
finish it, or, if it is ready to merge patch with tests and documentation
## **Did you write a client for your favorite language to access ``gnparser`` functionality via gRPC method calls?**
Let us know about your client on [GlobalNames gitter
## **Do you intend to add a new feature or change an existing one?**
* Suggest your change in the [GlobalNames gitter
group](, or [create an
issue]( that describes your
suggestion in detail.
## **Do you have questions about the source code?**
* Ask any question on the [GlobalNames gitter
## **Would you like to contribute, but do not know how?**
* Read the next section about configuring environment for the project.
## **Setting up ``gnparser`` programming environment**
### Introduction
``gnparser`` uses several external tools and technologies:
1. [Parsing Expression Grammar tool]( to
generate parsing code.
2. [Protobuf/gRPC]( to facilitate remote method calls from a
variety of programming languages.
3. [Cobra CLI framework]( for creating command
line application.
4. [Ginkgo testing framework]( for
Behavior-Driven Development and testing.
5. [Virtual File System Generator](
for including dictionaries and HTML static files or templates.
Most of these projects are installed by one command, but you do need to
setup Protobuf's ``protoc`` binary.
You can find binaries for ``protoc`` for Mac, Linux or Windows on the
[``protobuf`` releases page](
#### Installation of protoc on Mac
brew install protobuf
# or
brew upgrade protobuf
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
#### Installation of ``protoc`` on Linux
Use our [script for continuous integration](
as a guide.
### Install Go
[Download and install Go]( for your operating system. Make sure you
[configured GOPATH environment library](
You need Go v1.11.x or higher, because we use recently introduced Go modules.
### Install ``gnparser`` code
Before Go v1.11 all Go code had to be organized inside of the ``GOPATH``
directory. Now, for projects like ``gnparser`` that use Go modules it is not
necessary, however many tools still behave assuming old ways, so we recommend
to setup ``gnparser`` code traditional way.
mkdir -p $GOPATH/src/
cd $GOPATH/src/
git clone
# or use URL of your fork on gitlab or github
cd gnparser
# to download all dependencies
make deps
# to make gnparser executable and place it to $GOPATH/bin
# now you should be able to use gnparser compiled from the code:
gnparser -f pretty "Pica pica (Linnaeus, 1758)"
this should install all the tools and dependencies to test and run ``gnparser``.
You can check it by running
make test
Note that you would need to use ``GO111MODULE=on`` to run tests, or,
alternatively, you can install all dependencies in a 'traditional' way at
``GOPATH/src`` and ``GOPATH/bin``.
GO111MODULE=on go test
# or
GO111MODULE=on ginkgo
# to run all tests
GO111MODULE=on go test ./...
# or
GO111MODULE=on ginkgo ./...
# to run tests continuously
GO111MODULE=on ginkgo watch
\ No newline at end of file
......@@ -12,9 +12,9 @@ parsed into human readable information as follows:
This parser, written in Go, is the 3rd iteration of the project. The first,
[biodiversity] had been written in Ruby, the second, [also
gnparser][gnparser-scala], had been written in Go. This project is learned
gnparser][gnparser-scala], had been written in Scala. This project learned
from previous ones, and, when it matures, it is going to be the a
substitution of other two, and will be the only one that is maintained
substitution for other two, and will be the only one that is maintained
further. All three projects were developed as a part of [Global Names
Architecture Project][gna].
......@@ -341,6 +341,9 @@ func main() {
- [Geoff Ower]
If you want to submit a bug or add a feature read
## License
Released under [MIT license]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment