IPFS — intro
Day 17–1 Year of Blockchain
IPFS is a distributed storage protocol whose aim is ultimately to replace HTTP with a more efficient and less bandwidth hungry P2P network. I wanted to install it to use with Embark to explore what it would looks like to have a ‘serverless’ backend (serverless in this sense is not AWS Lambda functions, but instead is a distributed backend using Ethereum and IPFS). I’m curious how to structure such an app.
Installation for those inclined to get their hands dirty.
# Install Nix
$ curl https://nixos.org/nix/install | sh
# Reload shell
$ source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
# Install IPFS
$ nix-env -i ipfs
# Run it!
$ ipfs daemon
You should have an API running on port 5001 with a gateway on port 8080 (poor default).
Storing and retrieving via the command line is trivial and the IPFS site declares the tech ready to use today. I’m curious as to what that mean in practice and in production. Can I stream video to this thing?
I’m thinking of building a kind of game you play in real life. I will be attempting to use all these components to build a fully distributed app with live video streams and payments on the blockchain. If it passes my mandatory 2 week idea test (I have to wait two weeks before I write code for a new idea. I tend to build things before I remember how much damn work it is to get something production ready) then it will begin, and I will be writing mostly about the implementation of that project.