• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

wpengine/hackathon-catation: Hackathon 2020 project: IPFS photo sharing

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

wpengine/hackathon-catation

开源软件地址:

https://github.com/wpengine/hackathon-catation

开源编程语言:

Go 99.7%

开源软件介绍:

⚠️⚠️⚠️⚠️⚠️⚠️⚠️

⚠️⚠️⚠️ IMPORTANT DISCLAIMER: ⚠️⚠️⚠️ Catation & Catation Forever are one-off experiments built over a hackathon at WPEngine, with explicitly no official plans for maintenance or support from WPEngine. The projects are released for free under GPLv3+ as an act of gratitude towards the FLOSS community. You are more than welcome to fork it & develop further on your own, as long as you adhere to the GPLv3+ license terms. The projects are quick & dirty prototypes, thus they may and does use various horrible & amazing shortcuts and are certainly not ready for production-like use. ⚠️⚠️⚠️

For a list and status of any and all currently known forks, see:
https://github.com/wpengine/hackathon-catation/network

⚠️⚠️⚠️⚠️⚠️⚠️⚠️

Catation & Catation Forever - experiments in IPFS photo sharing

Catation is an experimental app for easy sharing of photo albums with non-tech people, using IPFS. The pitch tagline is "Dropbox for IPFS", or: "Easily share your cat & vacation photos with your family & friends!" (* dog photos are encouraged as well)

Catation GUI screenshot

Catation Forever: Herder is an experimental app complementing Catation. It provides a way to easily replicate (copy) or move your photos between various IPFS pinning (i.e. data persistence) services.

Herder GUI screenshot

Running Catation

  1. Go to https://pinata.cloud, create an account and copy your new "API key" and "Secret API key" into environment variables:

    $ export PINATA_API_KEY=...
    $ export PINATA_SECRET_API_KEY=...
    
  2. Go to https://bit.ly, create an account and copy your new "API key" into an environment variable:

    $ export BITLY_API_KEY=...
    
  3. Start Catation GUI or CLI:

    $ go run ./cmd/gui   # alternative: GUI
    or:
    $ go run ./cmd/uploader image1.jpg image2.png   # alternative: CLI
    
  4. Scroll down and select checkboxes for the photos you want to share.

  5. Click [Upload] button.

  6. Observe the terminal window, and wait till a bit.ly URL shows up:

    2020/11/18 11:02:23 index.html --> /ipfs/QmXp2vE9rzPnUGucfB7zZ7pfa9uPYNjMTstmcuiFPBoYhz
    2020/11/18 11:02:23 Pinning /ipfs/QmXp2vE9rzPnUGucfB7zZ7pfa9uPYNjMTstmcuiFPBoYhz containing "index.html"
    2020/11/18 11:02:32 pinned 1/2: images/cat-2.jpg
    2020/11/18 11:02:36 pinned 2/2: images/cat-1.jpg
    2020/11/18 11:02:40 UPLOAD SUCCESSFUL! ---> /ipfs/QmXp2vE9rzPnUGucfB7zZ7pfa9uPYNjMTstmcuiFPBoYhz
    2020/11/18 11:02:40 Waiting for remaining images...
    
    
    >>>>>
    >>>>>     https://bit.ly/2K8R2Bd
    >>>>>
    
  7. Copy this link and share the album with your friends and family!

Running Catation Forever: Herder

  1. Run herder. On first try, you will be prompted to create a config file - save below template into config.json and fill in the blanks. For example, fill Pinata account settings, and delete Pipin and Eternum configs:

    $ go run ./cmd/herder
    error: cannot read config.json: open config.json: no such file or directory
    HINT: example config.json (not all entries are required!):
    {
      "Pinata": {
        "Key": "",
        "Secret": ""
      },
      "Pipin": {
        "UseTLS": false,
        "Host": "",
        "Token": ""
      },
      "Eternum": {
        "Key": ""
      }
    }
    
  2. Run herder again, after filling config.json:

    $ go run ./cmd/herder
    2020/11/23 09:34:04 Starting GUI server on: http://localhost:8081/guitest/
    

    Your browser should now open and show the Catation Forever GUI.

  3. Optionally, if you have access to a Raspberry Pi or a VPS, and wish to use them to store a copy of your photos, see ./cmd/pipin/. The Pipin project is a service you need to run on the server, and pass its secret token into Herder's config.json.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap