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

monacofx1/MelonMail: Secure and decentralized messaging system built on top of E ...

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

开源软件名称:

monacofx1/MelonMail

开源软件地址:

https://github.com/monacofx1/MelonMail

开源编程语言:

JavaScript 98.4%

开源软件介绍:

Melon Mail

License: GPL v3 dependencies

Melon Mail is a secure and decentralized email-like system that relies on Ethereum and IPFS.

Original idea of Melon Mail developped under GPLv3 license by Devana Labs under leadership of Vladimir Prevolac and has since been completely rewritten and is maintained by Decenter under leadership of Andrej Cvoro.

Project structure

Project Root/
│
├── config/ - Config files
│
├── public/ - Bundled files
│
├── solidity/ - Contract code
│
├── src/
│   ├── actions/ - Redux actions / Async calls
│   ├── assets/ - Project assets
│   ├── components/ - React components
│   │   ├── App/  - App wrapper
│   │   ├── Auth/ - Auth page 
│   │   ├── Mail/ - Main mail page
│   │   └── Router/ - Basic helper router
│   ├── reducers/ - Redux reducers / Application state
│   ├── services/ - Helper services wrapping ipfs, ethereum...
│   ├── style/
│   └── index.jsx - Entry react file

Getting started

Running locally

npm install             Install dependencies 
npm run setup           Setup config parameters
npm run start           Start the app

When running npm run setup you can provide your custom config parameters, otherwise just skip with Enter key. If you need help just use npm run setup help.

Then visit http://localhost:3300/ to use your app.

Working on solidity contracts

In the solidity folder you'll find all the contracts as a truffle project (we are using truffle 4). You need to have truffle 4 installed as a global command and can use the built in truffle development blockchain.

truffle develop - to start the development blockchain (you have to be in /solidity folder)

After that in the truffle console you can migrate and test your contracts.

  • Tests will require Node version that is greater than Node 7.0
migrate
test

If you want to deploy the contracts to kovan use migrate --network kovan in solidity/truffle.js you have the deployment config for the network you can use your own local node or infura.io (supply the mnemonic 12 keyword seed of your wallet to deploy with infura) Add the new abi and contract address to the config.json file if you want to test your changes in the frontend.

Production deploy

npm install             Install dependencies 
npm run setup           Setup config parameters
npm run prod            Build a minified bundle

Your bundled files will be at the public/ folder, after that you just need to host them somewhere.

Hosting on IPFS

Follow the instructions for production deploy and proceed.

Install IPFS https://ipfs.io/docs/getting-started/

ipfs add -r public/

You will be given a set of hashes corresponding to the files in the public folder, use the most bottom one for the public folder.

It should look something like this added QmVN4UWCeqRe9LcqicyNzxnb55yK7sUxBHuHRRFVFt82WN public

Visit http://[insert trusted ipfs gateway]/ipfs/QmVN4UWCeqRe9LcqicyNzxnb55yK7sUxBHuHRRFVFt82WN

* Note when hosting on IPFS *

Hosting on IPFS comes with some disadvantadges, localStorage becomes unsecure because it's available cross domain and other apps hosted on IPFS can interfere with your data, when you host MelonMail on IPFS you should disable local storage features by setting Enable use of local storage to false during the setup wizard, or manually setting useLocalStorage to false in config/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