This repository provides a step-by-step guide on using the Spheron Storage SDK to upload and retrieve metadata on the decentralized web through IPFS. Metadata is essential for various use cases, including creating dynamic NFTs and storing data securely on a decentralized network.
Before you begin, make sure you have the following installed:
You'll also need a Spheron authentication token. You can obtain this token by signing up on the Spheron website and generating an API key.
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/spheron-storage-example.git
-
Navigate to the repository directory:
Copy code
cd spheron-storage-example
- Install the required dependencies:
Copy code
npm install
- Open the index.js file and replace the token variable with your Spheron authentication token.
To run the example code, execute the following command:
Copy code
node index.js
This command will upload a sample JSON file to IPFS using the Spheron Storage SDK, fetch it, and display the uploaded data in the console.
For a detailed guide and explanation of this example, please refer to the accompanying Medium article: Link to Your Medium Article
This project is licensed under the MIT License - see the LICENSE file for details.
Spheron for providing the Spheron Storage SDK. Feel free to explore the code and customize it for your own use cases. If you have any questions or feedback, please don't hesitate to open an issue or reach out.
Happy coding!