This is a simple script to upload images and metadata to nft.storage. It will upload all images and metadata in the specified folders.
git clone https://github.com/truethari/nft.storage_upload.git
cd nft.storage_upload
npm install
- Open the
config.json
file - Add your nft.storage API key.
- Add image folder and metadata folder paths.
{
"imagesDirectory" : "./images",
"metadataDirectory" : "./metadata",
"nftStorageKey" : ""
}
node index.js