Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rachmanaldiansyah/ipfs-storage-blockchain
Build full-stack decentralized file storage using Interplanetary File System (IPFS). Tutorial: https://youtu.be/_xdlNg3mB7M
https://github.com/rachmanaldiansyah/ipfs-storage-blockchain
blockchain hardhat ipfs
Last synced: 8 days ago
JSON representation
Build full-stack decentralized file storage using Interplanetary File System (IPFS). Tutorial: https://youtu.be/_xdlNg3mB7M
- Host: GitHub
- URL: https://github.com/rachmanaldiansyah/ipfs-storage-blockchain
- Owner: rachmanaldiansyah
- Created: 2023-05-17T00:01:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-17T00:10:25.000Z (over 1 year ago)
- Last Synced: 2024-08-22T10:11:17.990Z (3 months ago)
- Topics: blockchain, hardhat, ipfs
- Language: JavaScript
- Homepage:
- Size: 642 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Decentralized IPFS Storage Blockchain
To run the code, you need to run the following commands.
```shell
npm install
```You first need to compile the contract and upload it to the blockchain network. Run the following commands to compile and upload the contract.
```shell
npx hardhat compile
npx hardhat run --network volta scripts/deploy.js
```Once the contract is uploaded to the blockchain, copy the contract address and copy it in the .env file.
You can also use another blockchain by writing the blockchain's endpoint in hardhat-config.Once you have pasted your private key and contract address in the .env file, simply run command
```shell
node index.js
```and go to http://localhost:3000 to interact with the decentralized voting application.
Result of IPFS Hash
```shell
https://bafybeigldzupxxf5muvgsemogsnugu2bewzir4dqxxe5l5x4srv7e2ejuu.ipfs.dweb.link/
```