DHost VS Code Extension allows you to instantly publish static websites to IPFS by using web3.storage. Now you can publish and share your websites quickly with anyone in the world!
Open command palette
- Windows & Linux:
Ctrl + Shift + P
- MacOS:
Command + Shift + P
First, generate the web3.storage API key:
- Go to web3.storage and Sign In.
- Click on Accounts and select Create an API Token.
- Copy the API Token and paste it in the input field.
Now, to enter your web3.storage API token, type dhost.token
command.
Paste the copied web3.storage API token here:
On entering the API key, the "API token saved!" popup will appear.
The extension automatically sets the default folder as your current VS Code worskspace folder.
OR
You can manually select the folder of your static website by dhost.select
command.
After selecting folder, the "Folder selected!" popup will appear.
Now, publish your static website by dhost.publish
command.
It'll take a few seconds to publish.
After publishing successfully, it'll show the IPFS CID
of your website and an option to open the website (IPFS gateway URI).
If you have any queries, then create a discussion thread.
DHost is licensed under the MIT License.
Don't forget to leave a star ⭐️ ~