Skip to content

The official website for the project built using Yew and itself.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Defluencer/website

Repository files navigation

Defluencer Project Website

The official project website.

Visit defluencer.eth on Ropsten testnet for the latest dev build.

Requirements

Deploy

  • trunk clean
  • trunk build --release
  • ipfs add --cid-version=1 -r www
  • (Optional) ipfs pin add <HASH_FROM_PREVIOUS_STEP>
  • (Optional) Update your Ethereum Name Service domain's content hash with ipfs://<<HASH_FROM_PREVIOUS_STEP>>
  • (Optional) Visit a gateway. https://<HASH_FROM_PREVIOUS_STEP>.ipfs.dweb.link
  • Profit!

Testing

Setup 1

IPFS natively in Brave. (live streams won't work, cannot enable pubsub and IPNS is slow)

  • Install Brave browser
  • Go to brave://settings
  • Enable IPFS companion then when asked enable IPFS
  • Click companion extension icon then click My Node
  • Go to settings and replace
"API": {
  "HTTPHeaders": {}
},

with this

"API": {
  "HTTPHeaders": {
    "Access-Control-Allow-Methods": [
      "PUT",
      "POST",
      "GET"
    ],
    "Access-Control-Allow-Origin": [
      "http://localhost:45005",
      "http://127.0.0.1:45005",
      "https://webui.ipfs.io",
      "http://<INSERT_CID_HERE>.ipfs.localhost:48084"
    ]
  }
},
  • Replace <INSERT_CID_HERE> with the root CID.
  • Restart browser

Setup 2

IPFS + any browser

  • Install IPFS Desktop
  • Right click on IPFS tray icon, under settings, check both Enable PubSub & Enable IPNS over PubSub.
  • Allow CORS with these commands. (Replace <INSERT_CID_HERE> with root CID)
    • ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["GET", "POST", "PUT"]'
    • ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io", "http://<INSERT_CID_HERE>.ipfs.localhost:8080"]'

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

The official website for the project built using Yew and itself.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published