During the project, we encountered a couple of challenges:
Backend Integration and CORS: We faced an issue with backend integration where the frontend was unable to make requests to the backend API due to CORS (Cross-Origin Resource Sharing) restrictions. We realized that we hadn't installed and configured the CORS middleware on the backend server. To overcome this, we installed the CORS package and added it as middleware in our backend code. This allowed cross-origin requests from the frontend to the backend, resolving the issue.
Integration with Pinata and NFT.Storage: We encountered difficulties while integrating with Pinata, a service for IPFS (InterPlanetary File System) file hosting. We struggled to properly upload and retrieve files using Pinata. As an alternative solution, we explored and utilized NFT.Storage, which is a similar service specifically tailored for hosting NFT-related files. This allowed us to overcome the hurdle and continue with our project.
Overall, these challenges were overcome by identifying the specific issues, researching and understanding the necessary configurations or alternative solutions, and implementing the required changes to ensure smooth integration and functionality in our project.
Tracks Applied (3)
Polygon
Filecoin
Replit
Discussion