A repository for buying and selling satellite data on Web3.
Users can encrypt and upload satellite data using Lighthouse. After uploading, mint the hash value received from Lighthouse and the metadata of satellite data. Minted NFTs can be bought and sold on the marketplace. NFT buyers can use Lighthouse's Share feature to download and unzip the uploaded data.
-
Change working directory
cd blockchain/
-
Start node
yarn hardhat node
-
Compile contracts
yarn hardhat compile
-
Run unit tests
yarn hardhat test --network hardhat
Should be all green
9 passing (881ms) ✨ Done in 1.53s.
-
Deploy
yarn hardhat run deploy/deploy.js --network localhost
yarn hardhat deploy
- Write address info to app/src/utils/constants.ts as env vars
cd app/
yarn dev
You can access "http://localhost:3000/upload" after run apps.
TBD...
TBD...