Skip to content

Decentralized crowd-curated discussion platform build upon Stanford Protocol Lab's Interplanetary Filesystem (IPFS)

License

Notifications You must be signed in to change notification settings

turbotardigrade/agora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agora - Decentralized crowd-curated discussion platform

Project overview

data/         - Folder storing all user data like node config and databases

main.go       - Entrypoint of the program

connection.go - Manage connections with other nodes
content.go    - Manages Posts and Comments
data.go       - Manages data on the filesystem / IPFS layer
node.go       - Abstraction over IPFS node to deal with libp2p network
peerapi.go    - API and client
peerserver.go - Generalized server which can run on any node to provide services
user.go       - User management

Build

Dependencies

Note that you need at least go1.8 to run this project.

Get IPFS from source and install it:

Steps summarized from [here](go get -u -d github.com/ipfs/go-ipfs).

go get -u -d github.com/ipfs/go-ipfs
cd $GOPATH/src/github.com/ipfs/go-ipfs
make install

Get gx package manager and the rest of the dependencies

Gx is needed to get dependencies hosted on IPFS.

go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
gx install
go get

Build and Test

go build
go test

Troubleshooting

mdns lookup error

If you get this:

16:47:40.068 ERROR       mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:135

Fix it by raising the limit for the number of allowed file descriptors:

ulimit -n 5120

About

Decentralized crowd-curated discussion platform build upon Stanford Protocol Lab's Interplanetary Filesystem (IPFS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published