[Steemia] - NodeJS backend for IPFS Image Uploads

in #utopian-io8 years ago (edited)

Steemia IPFS

  • What is the project about?

This project is a NodeJS backend service for uploading photos to an IPFS server.

IPFS (InterPlanetary File System) is a protocol and network designed to create a content-addressable, peer-to-peer method of storing and sharing hypermedia in a distributed file system.

More information about IPFS can be found here

  • Technology Stack
IPFS

Go IPFS Version v0.4.14

NODE

NodeJS Version 8.11.1 LTS


How to Install

Download IPFS => https://ipfs.io/docs/install/

Start an IPFS node with your CLI;

ipfs daemon 

It will start working at localhost:5001

git clone https://github.com/hsynterkr/steemia-ipfs
cd steemia-ipfs
npm install
npm start

It will start working at localhost:5000

Now you can upload photos to your local IPFS node.

You can send a HTTP POST request to localhost:5000/upload to upload an image file!

The request will return a Hash. You can find the image file at

http://localhost:8080/ipfs/{YOUR_HASH}

or

https://ipfs.io/ipfs/{YOUR_HASH}

Ekran Resmi 2018-04-07 06.30.06.png

Upload test with PostMan


Roadmap

  • Compress photos before uploading to IPFS
  • Create an authentication service for uploads
  • Allow video uploads

How to contribute?

You just need to fork the following repository:
https://github.com/hsynterkr/steemia-ipfs

Feel free to send us a Pull Request...



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

Please make sure to include the specific commits in your posts that are relevant to it.

It would be nice to see a sample script using your library.
You can contact us on Discord.
[utopian-moderator]

Thank you @helo I will create a folder for examples.

Local notification test @hsynterkr

Hey @hsynterkr I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

You should try Insomnia, it is like Postman, but except it is opensource:
https://insomnia.rest/download/

Btw are you on discord?

Hello @throwawayaccount
Thanks for suggestion and yes I am on Utopian and Steemia discord channels.

Steemia Discord

https://discord.gg/KbAHS7s

Thanks I'll join.

Loading...

Coin Marketplace

STEEM 0.09
TRX 0.31
JST 0.031
BTC 104993.29
ETH 3711.36
USDT 1.00
SBD 0.61