mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-26 22:39:07 +01:00
feat(contribution.md) project setup
This commit is contained in:
@@ -1,5 +1,28 @@
|
|||||||
# Contribution
|
# Contribution
|
||||||
|
|
||||||
|
### To start developing Netbird
|
||||||
|
**You have a working Go environment**
|
||||||
|
|
||||||
|
Clone the project into your preferred path. We recommend just cloning into the GOPATH.
|
||||||
|
```
|
||||||
|
mkdir -p $GOPATH/src/github.com/netbirdio
|
||||||
|
cd $GOPATH/src/github.com/netbirdio
|
||||||
|
git clone git@github.com:netbirdio/netbird.git
|
||||||
|
cd netbird
|
||||||
|
go build ./...
|
||||||
|
```
|
||||||
|
**_Sidenote_** _`libayatana-appindicator3-dev` might be needed for developing on debian based distros._
|
||||||
|
|
||||||
|
|
||||||
|
**To run the tests execute:**
|
||||||
|
|
||||||
|
```
|
||||||
|
go test -exec sudo ./...
|
||||||
|
```
|
||||||
|
The tests need to be executed by a superuser,
|
||||||
|
because to run the integration tests we need to create network interfaces.
|
||||||
|
|
||||||
|
|
||||||
### Code Structure
|
### Code Structure
|
||||||
|
|
||||||
The codebase is structured in 3 big components:
|
The codebase is structured in 3 big components:
|
||||||
|
|||||||
Reference in New Issue
Block a user