Skip to content

CU-Robotics/waggle

Repository files navigation

Waggle

The hive communicates with a waggle.

Installation

First, install Go. The easiest way to do this on Ubuntu is through snap

sudo snap install go --classic

Download Waggle into your home directory with

cd && git clone [email protected]:CU-Robotics/waggle.git

or

cd && git clone https://github.com/CU-Robotics/waggle.git

Go into the Waggle directory

cd waggle

Build the Waggle binary

go build

Usage

Run the run script

./tools/run.sh

Updating

Pull the new code

git pull

Build the new waggle binary

go build

Development

In addition to Go, you need to install node. This is easiest with nvm

cd && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Then install Node 20

nvm install 20

Set Node 20 as the default

nvm use 20

Install all node dependencies

cd ~/waggle/client && npm install

Now, whenever you make a change to Go code, run

go build

And whenever you make a change to the client code, run the following from inside the client/ directory

npm run build