Vue CLI plugin for deploying apps on Sia Skynet (With Namebase integration).
Demo: How to deploy a Vue app on Skynet in under a minute! (Video)
- Easy to use UI (Vue UI)
- Auto update your Namebase/Handshake domain after upload
- Sites deployed with Skynet benefit from all the normal Skynet perks (Unhackable, censorship resistent & very high uptime and speeds due to Sias network, just to name a few)
Requirements
Deploying an app
- Create a vue app if you haven't already with
vue create my-app
or using thevue ui
web ui - Change directory
cd my-app
- Add the vue skynet plugin
vue add skynet
This should add the npm scripts deploy
and publish
, edit the vue.config.js
to use relative paths, install the npm package @nebulous/skynet
and create the files deploy_skynet.js
& vue-skynet_config.js
In the vue-skynet_config.js
file you can set a skynet portal and enable the Handshake/Namebase integration.
This can also be changed in the vue ui.
Now you can deploy your vue app to skynet with npm run deploy
which will build your app and upload it. If you just want to upload and not build you can use npm run publish
You can also use the taks in the vue ui for that.