The Airmed Foundation is an open source initiative that provides a secure channel to store and transfer medical records. It is based on the Interplanetary File System (IPFS) and Hyperledger Fabric. The conjunction of these technologies guarantees the immutability and availability of the data.
In order to achieve secure and reliable file management:
Sharing files with the Airmed Foundation platform is pretty straightforward. Depending on their desired privacy level, one can upload files with or without asymmetric encryption. We have created this tutorial to explain both procedures.
The following dependencies must be downloaded and installed in order to use Airmed Foundation's Node.js terminal:
Here we guide you through this process.
Interplanetary File System (IPFS)
Project website: https://ipfs.io/
wget https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_linux-amd64.tar.gz
tar xvfz go-ipfs_v0.4.19_linux-amd64.tar.gz
cd go-ipfs
sudo ./install.sh
ipfs init
Docker and Docker Compose
Project website: https://docs.docker.com/install/linux/docker-ce/ubuntu/ (Docker)
Project website: https://docs.docker.com/compose/install/ (Docker Compose)
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo apt-get install docker-compose
Node.js, NPM and NVM
Project website: https://nodejs.org/en/ (Node.js)
Project website: https://www.npmjs.com/ (NPM)
Project repo: https://github.com/creationix/nvm#installation-and-update (NVM)
sudo apt-get install nodejs
nvm install 8.15.0
nvm use 8.15.0
Hyperledger Fabric
Project website: https://www.hyperledger.org/projects/fabric
git clone https://github.com/hyperledger/fabric-samples
cd fabric-samples
./scripts/bootstrap.sh 1.4.0 1.4.0
cd first-network
./byfn.sh generate
./byfn.sh up
Download Airmed Foundation
Project website: https://airmedfoundation.thechain.tech/
git clone https://github.com/the-chain/airmedfoundation-terminal
cd airmedfoundation-terminal
npm install
Install Chaincode to Hyperledger Network
cd airmedfoundation-terminal
docker exec -it cli peer chaincode instantiate -C mychannel -l "node" -n airmed -v v1 -c '{"Args":[]}' -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
docker exec -it cli peer chaincode instantiate -C mychannel -l "node" -n secureRec -v v1 -c '{"Args":[]}' -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Edit config/datastores.js
Change values to connect to postgreSQL. In order to install postgreSQL, you can run the following command in the terminal:
docker-compose up -d
Edit config/policies.js
For testing purposes, remove comment from line 20.That is, line
//'*': 'isHTTPS',
should now look like
'*': 'isHTTPS',
Edit Hyperledger configuration file
In the file fabric-api/config/configfile.yaml, you should replace the default admin certificate paths with the actual path of your project. Please note that you should only modify paths from adminPrivateKey in Line 44 under Org1, and in Line 56 under Org2. Everything else must remain unaltered.
As a further advice, please make sure that fabric-sample and airmedfoundation-terminal are in the same directory.
The paths should look as follows:
/home/root/Desktop/fabric-sample
/home/root/Desktop/airmedfoundation-terminal
Running the application is very simple. You just need to:
ipfs daemon &
./init.sh &
node ./node_modules/sails/bin/sails.js l --redis --safe
And now you're ready to go!
Contact: This open source project is brought to you by The Chain, a software shop specialized in the development of applications and services based on blockchain technology and artificial intelligence. Any questions that might arise should be sent to the project's maintainers. We will be happy to assist you.
License: This project is under the GNU Affero General Public License v3.0.
问题内容: 我试图通过Mac上的终端运行Java程序,但得到: 我用Eclipse编译了这个应用程序,当我用Eclipse运行它时,它运行良好。此外,我在正确的目录中,因为当我在终端中键入“ ls”时,它会列出所有文件,包括我要运行的类文件。 这是我输入的内容: 我非常感谢帮助解决此问题! 谢谢, 院长 编辑:解决方案-而不是java mainClass,它也必须具有包:java startPac
问题内容: 我正在使用Ubuntu 9.04 x64,并且在我撰写本文时: 在终端,我希望它在同一终端窗口中打开一个新选项卡。而是打开一个新窗口。 我发现它的目的是在新窗口中打开一个新选项卡,即,如果我写: 它将打开一个带有两个选项卡的新窗口。 因此,问题是,如何使用中的命令在 当前 窗口中打开新标签页? 问题答案: 这将自动确定相应的终端并相应地打开选项卡。
问题内容: 好的,我对Mac和OSX有点陌生,但是我选择了一个,以便可以使用我的Java程序对一些Java程序进行故障排除,因为我工作的公司使用OSX和Windows机器的组合。我遇到的问题是,当我从Oracle网站安装Java 7时,它会更新首选项菜单,并在双击它们时似乎可以正确执行.jar文件,但是终端窗口的版本仍为1.6.0_43并运行由于版本较旧,终端上的相同.jar文件会导致运行时错误。
本文向大家介绍如何在mac的terminal安装Apache Tomcat,包括了如何在mac的terminal安装Apache Tomcat的使用技巧和注意事项,需要的朋友参考一下 首先是下载Apache Tomcat 网址是http://tomcat.apache.org/download-70.cgi 下载好之后解压到你常用的目录下面,这里我放到了desktop 通过输入以下命令行进入apa
问题内容: 我已经安装了从oracle网站下载的JDK 7u7。但是安装后,终端仍然显示Java版本6 知道为什么Java 7不显示吗? 回答:好的,问题已经解决。答案是:我发现我的终端机具有.bash_profile,并且java home变量设置为1.6 因此,这是导致每次我打开新终端窗口时出现问题的行。只需删除此行即可解决问题。你仍然需要遵循@aleroot所说的内容,但是如果这对你不起作用
问题内容: 我的问题是,我正在通过终端运行一些adb命令。我写了一个工具;这将使事情变得容易。回到问题所在,为了使命令运行,我必须在终端上输入“密码”。那么,我该如何做才能使“密码”部分出现在JOptionPane.showInputDialog框上? 这是我到目前为止的内容: 问题答案: 您可以“读取”过程输入,并在“检测到”密码提示时显示,并要求用户输入密码。 在开始该过程之前,您“可以”提示