DEV Community

Abu Taher Siddik
Abu Taher Siddik

Posted on

PinFu: A Dual-Purpose Application for Effortless File Uploads to Pinata

This is a submission for the The Pinata Challenge

What I Built

PinFu is a dual-purpose application designed for seamless file uploads to Pinata. It consists of two components:

  1. PinFu Web Application: A user-friendly web interface built with PHP that allows users to manage their Pinata API keys, upload files, and view uploaded files on IPFS.

  2. PinFu CLI Application: A command-line interface that enables users to upload files directly from the terminal, manage API keys, and view uploaded files easily.

Demo

You can access the web application at PinFu Demo. Below are some screenshots showcasing the user interface:

PinFu Web Upload
Image description
Uploaded Files

Image description

My Code

You can find the source code for both the web application and CLI in this GitHub repository: PinFu Repository.

  • Web Application: /pinfu
  • CLI Application: /pinfu/pinata_cli

More Details

How I Used Pinata

  • API Integration: Both applications utilize Pinata's Files API to handle file uploads efficiently. Users can save their API keys directly through the UI or CLI.

  • File Uploads: The web app allows users to select files from their local machine and upload them to Pinata, displaying the IPFS hash upon successful upload. The CLI app offers a similar experience but through terminal commands.

  • Viewing Uploaded Files: Users can view a list of uploaded files along with their IPFS hashes and direct links to access them via Pinata's gateway.

Top comments (0)