commit 927f775a3da018f53a2b0d125c3832f02eb0eb7a Author: Enrico Fasoli Date: Wed Nov 4 16:08:33 2015 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..08cbb76 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# IPFS Board + +### Data Storage + +Each user exposes via IPNS a folder containing: + +- boards + - _board name(s)_ +- posts + - _board name(s)_ + - _admin name(s)_ + - _post(s)_ +- comments + - _board name(s)_ + - _admin name(s)_ + - _comment(s)_ +- votes + - _board name(s)_ + - _admin name(s)_ + - _vote object(s)_ + +#### Post + + { + "title": "Title of the post", + "text": "Content of the post" + } + +#### Comment + + Comment text + +#### Vote + + ipfs-board:vote-for:object_url diff --git a/package.json b/package.json new file mode 100644 index 0000000..60aef26 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "ipfs-board", + "version": "0.1.0", + "description": "decentralized discussion board", + "main": "server.js", + "scripts": { + "start": "node server.js" + }, + "author": "Enrico Fasoli (fazo96)", + "license": "MIT", + "dependencies": { + "diet": "^0.9.22", + "ipfs-api": "^2.6.2" + } +} diff --git a/server.js b/server.js new file mode 100644 index 0000000..b4b11c9 --- /dev/null +++ b/server.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node + +var ipfs = require('ipfs-api')('localhost','5001') + + diff --git a/static/app.js b/static/app.js new file mode 100644 index 0000000..e69de29 diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..fb335cd --- /dev/null +++ b/static/index.html @@ -0,0 +1,9 @@ + + + IPFS Board + + + + + +