Giter VIP home page Giter VIP logo

papel-mache's Introduction

Papel Mache

Papel Mache is an app that uploads pictures to IPFS through pinata.cloud, useful for NFTs collections and automatically deploys in IPFS


Requirements

  • pinata/sdk: 1.1.14
  • node: 14.17.6

Node

  • Node installation on Windows

    Go on official Node.js website and download the installer.

  • Node installation on Ubuntu

    You can install nodejs and npm easily with apt install, just run the following commands.

    $ apt-get install nodejs
    $ apt-get install npm
    
  • Other Operating Systems

    You can find more information about the installation on the official Node.js website and the official NPM website.

Configure app

You will need the following env variables:

  • API_KEY: get it from your pinata.cloud user.
  • API_SECRET_KEY: get it from your pinata.cloud user.
  • IMAGES_FOLDER: this is the name of the folder where the files you want to download are located. they should be in your project, this is a relative location. If not set, the program will try to find the images in a folder called test

Running the project

$ npm install
$ npm app.js

Output

It will write a csv file called ipfs.csv with the ipfs id and the image so you can relate each image with the ipfs link

Other features

If there are a lot of pictures to upload the pinata cloud server may failed or your connection may failed. That's why you have the file check-pins.js. With the command:

$ npm check-pins.js

You can get a report of the pins uploaded in case you want to retry only for those who failed.

papel-mache's People

Contributors

cardanovalley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nandipritam88

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.