mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
first commit
This commit is contained in:
commit
927f775a3d
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
node_modules/
|
35
README.md
Normal file
35
README.md
Normal file
@ -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
|
15
package.json
Normal file
15
package.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
5
server.js
Normal file
5
server.js
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var ipfs = require('ipfs-api')('localhost','5001')
|
||||
|
||||
|
0
static/app.js
Normal file
0
static/app.js
Normal file
9
static/index.html
Normal file
9
static/index.html
Normal file
@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>IPFS Board</title>
|
||||
<link rel="stylesheet" href="butstràp">
|
||||
</head>
|
||||
<body>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user