Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bakaoh/fluencebin
A fully decentralized application for sharing code
https://github.com/bakaoh/fluencebin
fluence
Last synced: about 1 month ago
JSON representation
A fully decentralized application for sharing code
- Host: GitHub
- URL: https://github.com/bakaoh/fluencebin
- Owner: bakaoh
- Created: 2019-08-11T06:30:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T04:22:38.000Z (over 1 year ago)
- Last Synced: 2023-07-25T05:36:54.385Z (over 1 year ago)
- Topics: fluence
- Language: JavaScript
- Homepage: http://ipfs.fluence.one:8080/ipfs/QmZHMab9HkbAQbh3VRMsS1XTzpZY76XnoCYEHR9rUZhMBm/
- Size: 3.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FluenceBin
FluenceBin a fully decentralized application for sharing code.
The frontend of this project is based on [ipfsbin](https://github.com/victorb/ipfsbin). By using [Fluence](https://fluence.network/) as the backend instead of [ipfs](https://ipfs.io/), FluenceBin allows users update content without changing urls.
## Live App
[Link](http://ipfs.fluence.one:8080/ipfs/QmZHMab9HkbAQbh3VRMsS1XTzpZY76XnoCYEHR9rUZhMBm/)
Fluence backend config:
```javascript
let contractAddress = "0xeFF91455de6D4CF57C141bD8bF819E5f873c1A01";
let ethUrl = "http://rinkeby.fluence.one:8545/"
let appId = "366";
```## TODO
- [ ] User profile
- [ ] Access control
- [ ] Line comment
- [ ] Repl
- [ ] Live coding## Backend
- Build
```bash
$ cd backend
$ cargo +nightly build --target wasm32-unknown-unknown --release
```- Run debug
```bash
$ docker run --rm -v `pwd`/target/wasm32-unknown-unknown/release/fluencebin.wasm:/code/code.wasm -p 30000:30000 fluencelabs/frun
```- Deploy ([doc](https://fluence.dev/docs/publishing-a-backend-app))
## Frontend
- Build
```bash
$ cd frontend
$ npm install
$ npm build
```- Run dev
```bash
$ npm start
```- Deploy
```bash
$ IPFS_ADDR=$(host ipfs.fluence.one | awk '/has address/ { print $4 }')
$ ipfs --api /ip4/$IPFS_ADDR/tcp/5001 add -r path/to/built/frontend
```