<commit_before>---
title: Source
menu:
    main:
        parent: community
        weight: 3
---

## LoRa Gateway Bridge source

Source-code can be found at [https://github.com/brocaar/lora-gateway-bridge](https://github.com/brocaar/lora-gateway-bridge).

### Building

#### With Docker

The easiest way to get started is by using the provided 
[docker-compose](https://docs.docker.com/compose/) environment. To start a bash
shell within the docker-compose environment, execute the following command from
the root of this project:

```bash
docker-compose run --rm gatewaybridge bash
```

#### Without Docker

It is possible to build LoRa App Server without Docker. However this requires
to install a couple of dependencies (depending your platform, there might be
pre-compiled packages available):

##### Go

Make sure you have [Go](https://golang.org/) installed (1.7+) and that the LoRa
App Server repository has been cloned to 
`$GOPATH/src/github.com/brocaar/lora-app-server`.

##### Development utilities

Finally, install some utilities used for development by executing the
following commands:

```bash
go get github.com/golang/lint/golint
go get github.com/kisielk/errcheck
```

#### Example commands

A few example commands that you can run:

```bash
# install all requirements
make requirements

# run the tests
make test

# compile
make build

# cross-compile for Linux ARM
GOOS=linux GOARCH=arm make build<commit_msg>Fix typos.<commit_after>---
title: Source
menu:
    main:
        parent: community
        weight: 3
---

## LoRa Gateway Bridge source

Source-code can be found at [https://github.com/brocaar/lora-gateway-bridge](https://github.com/brocaar/lora-gateway-bridge).

### Building

#### With Docker

The easiest way to get started is by using the provided 
[docker-compose](https://docs.docker.com/compose/) environment. To start a bash
shell within the docker-compose environment, execute the following command from
the root of this project:

```bash
docker-compose run --rm gatewaybridge bash
```

#### Without Docker

It is possible to build LoRa App Server without Docker. However this requires
to install a couple of dependencies (depending your platform, there might be
pre-compiled packages available):

##### Go

Make sure you have [Go](https://golang.org/) installed (1.7+) and that the LoRa
Gateway Bridge repository has been cloned to 
`$GOPATH/src/github.com/brocaar/lora-gateway-bridge`.

#### Example commands

A few example commands that you can run:

```bash
# install all requirements
make requirements

# run the tests
make test

# compile
make build

# cross-compile for Linux ARM
GOOS=linux GOARCH=arm make build
{'fraction_non_alphanumeric': 0.10120391271632806, 'fraction_numerical': 0.002257336343115124, 'mean_word_length': 4.133204633204633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5540870', 'n_tokens_mistral': 813, 'n_tokens_neox': 747, 'n_words': 305}