Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

161 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package asn implements the Apptimist Social Network Protocol described in this RFC.

Fetch asn and its dependencies with GO tool.

go get -u github.com/apptimistco/asn

(See the MacOS section for running asn on that instead of Linux)

This will install these external dependencies. github.com/agl/ed25519 github.com/tgrennan/go-gnureadline golang.org/x/crypto golang.org/x/net gopkg.in/yaml.v1

Note: go-gnureadline requires libreadline-dev; so, on Ubuntu:

sudo apt-get install libreadline-dev

Test the dependencies.

go test -i github.com/apptimistco/asn

Run the package tests.

go test github.com/apptimistco/asn

Run the tests with diagnostics written to test.diag.

go test -tags diag github.com/apptimistco/asn

Build the asn command.

go build github.com/apptimistco/asn

Build asn with diagnostics.

go build -tags diag github.com/apptimistco/asn

Generate keys and hack a config.

asn -new-keys > my-keys.yaml
asn -config test-sf -show-config >my-srv.yaml
echo keys: my-keys.yaml >>my-srv.yaml
editor my-srv.yaml
asn -config test-adm -show-config >my-adm.yaml
echo keys: my-keys.yaml >>my-adm.yaml
editor my-adm.yaml

Run and test.

asn -config my-srv &
asn -config my-adm echo hello world

See this recipe for build and test of Docker containers.

MacOS

To run asn under MacOS, start by installing Go tools.

a. Prebuilt install

b. Build from source

export GOPATH=$HOME/go
git clone --branch go1.4 https://go.googlesource.com/go
(cd go/src; ./all.bash)

See http://golang.org/s/gogetcmd to download Version Control Tools The Xcode development kit includes Git but you may need Mercurial http://mercurial.selenic.com/downloads or, after installing Macports: https://guide.macports.org/

sudo port install mercurial

Install readline before getting asn.

sudo port install readline

GoDoc

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages