NexNet
is written in GO. Before you run the code, you need to set up your GO development environment.
-
Install
Go
version 1.16 or above. -
Define
GOPATH
environment variable and modifyPATH
to access your Go binaries. A common setup is as follows. You could always specify it based on your own flavor.export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin
- Visit https://github.com/PsychoPunkSage/NexNet
- On the top right of the page, click the
Fork
button (top right) to create a cloud-based fork of the repository.
Create your clone:
mkdir -p $working_dir
cd $working_dir
git clone https://github.com/$user/NexNet.git
# or: git clone [email protected]:$user/NexNet.git
cd $working_dir/NexNet
git remote add upstream https://github.com/PsychoPunkSage/NexNet.git
# or: git remote add upstream [email protected]:PsychoPunkSage/NexNet.git
# Never push to the upstream master.
git remote set-url --push upstream no_push
# Confirm that your remotes make sense:
# It should look like:
# origin [email protected]:$(user)/NexNet.git (fetch)
# origin [email protected]:$(user)/NexNet.git (push)
# upstream https://github.com/PsychoPunkSage/NexNet (fetch)
# upstream no_push (push)
git remote -v
Build the project
make build
Run the project (It will build the project first)
make run
Run test cases
make test