All Projects → the-chain → airmedfoundation-terminal

the-chain / airmedfoundation-terminal

Licence: AGPL-3.0 License
Airmed Foundation's IPFS + Hyperledger Fabric web client

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to airmedfoundation-terminal

ehr-blockchain
Electronic Health Record (EHR) and Electronic Medical Record (EMR) systems. However, they still face some issues regarding the security of medical records, user ownership of data, data integrity etc. The solution to these issues could be the use of a novel technology, i.e., Blockchain. This technology offers to provide a secure, temper-proof pl…
Stars: ✭ 41 (+41.38%)
Mutual labels:  ipfs, medical-records
pacman.store
Pacman Mirror via IPFS for ArchLinux, Endeavouros and Manjaro
Stars: ✭ 65 (+124.14%)
Mutual labels:  ipfs
fabric-external-chaincodes
Hyperledger Fabric network in K8s with External Chaincodes as pods
Stars: ✭ 69 (+137.93%)
Mutual labels:  hyperledger-fabric
subsocial-offchain
Off-chain storage for Subsocial blockchain. This app builds user feeds and notifications by subscribing to Substrate events.
Stars: ✭ 24 (-17.24%)
Mutual labels:  ipfs
RabbitMQ-with-Django
Example for using Microservices with RabbitMQ in a Django Web-Application
Stars: ✭ 26 (-10.34%)
Mutual labels:  ipfs
meanOs
Mean Operating System - The first decentralized, artificially intelligent, MEAN.js stack, operating system. Mean OS is the only operating system hosted anonymous using a P2P network and a suite of non-standard in-browser delivery mechanisms. Mean OS proudly supports Brave and Tor, be free!
Stars: ✭ 62 (+113.79%)
Mutual labels:  ipfs
godless
Peer-to-peer lite database over IPFS
Stars: ✭ 72 (+148.28%)
Mutual labels:  ipfs
tenk
Template for making a NFT contract with a raffle of tokens
Stars: ✭ 32 (+10.34%)
Mutual labels:  ipfs
heroes-service-network
Short tutorial to build a blockchain network with Hyperledger Fabric
Stars: ✭ 22 (-24.14%)
Mutual labels:  hyperledger-fabric
pinning-services-api-spec
New vendor-agnostic Pinning Service API for IPFS ecosystem
Stars: ✭ 48 (+65.52%)
Mutual labels:  ipfs
hyperledger
Blockchain、Hyperledger、Ethereum、IPFS learning materials / 学习指南
Stars: ✭ 93 (+220.69%)
Mutual labels:  ipfs
EHR-on-blockchain
A Electronic Health Records system on hyperledger fabric maintained by consortium of hospitals for patients.
Stars: ✭ 35 (+20.69%)
Mutual labels:  hyperledger-fabric
DTrip
DTrip - Traveler's app on STEEM blockchain.
Stars: ✭ 18 (-37.93%)
Mutual labels:  ipfs
ipfs-docs
📚IPFS documentation platform
Stars: ✭ 196 (+575.86%)
Mutual labels:  ipfs
go-libp2p-tor-transport
🚧 WIP: tor transport for libp2p
Stars: ✭ 41 (+41.38%)
Mutual labels:  ipfs
awesome-orbitdb
Useful resources for using OrbitDB and building projects on it
Stars: ✭ 87 (+200%)
Mutual labels:  ipfs
example-orbitdb-todomvc
TodoMVC with OrbitDB
Stars: ✭ 17 (-41.38%)
Mutual labels:  ipfs
writing-chaincode
A repository to help experience developers with no Go or chaincode development experience to write and debug chaincodes.
Stars: ✭ 19 (-34.48%)
Mutual labels:  hyperledger-fabric
tor-dht-poc
Anonymous DHT Accessible from Executable or Tor-Enabled Browser
Stars: ✭ 40 (+37.93%)
Mutual labels:  ipfs
RSA-Encryption-Flutter
Encryption based on asymmetric cryptography
Stars: ✭ 17 (-41.38%)
Mutual labels:  asymmetric-cryptography

Airmed Foundation - Node.js Terminal

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:

  • We replicate all records on the IPFS network using the Bittorrent protocol.
  • We restrict access to records using asymmetric cryptography.
  • We protect and store cryptographic access keys in the Hyperledger Fabric blockchain.

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.

Installation and Usage

The following dependencies must be downloaded and installed in order to use Airmed Foundation's Node.js terminal:

  • Interplanetary File System (IPFS)
  • Docker
  • Docker Compose
  • Node.js
  • NPM
  • NVM
  • Hyperledger Fabric

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

Configuration of Airmed Foundation's server

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

Running the application is very simple. You just need to:

  • Run IPFS
ipfs daemon &
  • Run the sync process
./init.sh &
  • Run the server
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.

E-mail: [email protected]

License: This project is under the GNU Affero General Public License v3.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].