This pull request updates the IPFS integration in the NFT Marketplace project by switching from the Infura API to the Pinata API. Infura recently deprecated their public gateway, requiring users to create an account and provide card details to access the free API. However, this additional step of providing card details is often the last thing students and developers would prefer to do. To simplify the process and make it more convenient, I have replaced the Infura API calls with equivalent calls to the Pinata API, which does not require card details. This change ensures smooth functionality for IPFS-related operations in the application while addressing the concerns of students and developers.
Changes Made
Updated the ipfs.js file to replace all Infura API endpoints with corresponding Pinata API endpoints.
Updated the config.js file to use the Pinata API key and secret for authentication.
Refactored relevant code sections to accommodate changes in the API response format.
Added the required Pinata SDK and dependencies to the project's package.json file.
Updated the README.md file with instructions on how to obtain a Pinata API key and configure it for use in the application.
Testing Done
Conducted thorough testing of the IPFS integration using Pinata API.
Verified that file uploads, pinning, and retrieval of IPFS content function as expected.
Tested the application's various features related to IPFS, such as NFT creation, metadata storage, and retrieval.
…PFS integration
Description
This pull request updates the IPFS integration in the NFT Marketplace project by switching from the Infura API to the Pinata API. Infura recently deprecated their public gateway, requiring users to create an account and provide card details to access the free API. However, this additional step of providing card details is often the last thing students and developers would prefer to do. To simplify the process and make it more convenient, I have replaced the Infura API calls with equivalent calls to the Pinata API, which does not require card details. This change ensures smooth functionality for IPFS-related operations in the application while addressing the concerns of students and developers.
Changes Made
ipfs.js
file to replace all Infura API endpoints with corresponding Pinata API endpoints.config.js
file to use the Pinata API key and secret for authentication.Testing Done
Related Issues
5 - IPFS image upload error 9 - ipfs image upload error: HTTPError: project id required
Closes #5 #9
Checklist