{"repo":"vgrichina/web4-deploy","free":true,"listed":false,"github":"https://github.com/vgrichina/web4-deploy","clone":"git clone https://github.com/vgrichina/web4-deploy.git","description":"Deploy static content for Web4 webapp. Supports IPFS for now.","language":"JavaScript","stars":22,"topics":["blockchain","ipfs","nearprotocol","web3","web4","permaweb"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"web4-deploy Deploy static content for Web4 webapps. Supports IPFS and NEARFS. Designed to be used together with https://github.com/vgrichina/web4. Usage Prerequisites - Node.js 14 or higher - (Optional) IPFS pinning service API key if not using NEARFS IPFS Pinning Services If you want to use IPFS pinning (optional, as NEARFS is the default), two services are supported: web3.storage 1. Go to https://web3.storage and sign up for an account or login with GitHub 2. Go to https://web3.storage/docs/how-tos/generate-api-token/ and create a new token 3. Set the token as WEB3 TOKEN environment variable before running the script Deploy to IPFS When installed (use either npm or yarn): Run latest version from npm if not installed: Deploy default smart contract after uploading to IPFS: This will deploy web4-min-contract to the account, so that .near account can be connected to respective IPFS hash. Deploy custom smart contract after uploading to IPFS: Deploy fully on-chain to NEARFS When you want best availability guarantees and don't mind to pay for storage, you can deploy to NEARFS. Note that you need to either provide NEAR SIGNER KEY or have /.near-credentials/ / .json file with key. Use NEAR ENV or NODE ENV to specify NEAR network to use. Defaults to testnet . Use in CI/CD pipeline like GitHub Actions Make sure to store WEB3 TOKEN and NEAR SIGNER KEY as GitHub secrets. NEAR SIGNER KEY allows you to pass necessary private key to the deploy script without having key storage in /near-cre","default_branch":null,"files":null,"tree":[],"storefront":"/r/vgrichina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vgrichina/web4-deploy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}