With fission
installed, we are ready to set it up on your local machine. If this is your first time using fission, you will be prompted for a username and an email to confirm your new account.
$ fission setupUsername: USERNAMEEmail: username@example.com✅ Registration successful! Head over to your email to confirm your account.Installing dependencies...
A private key has been generated for your machine and saved in the ~/.config/fission/key/
directory. This key secures your communication with Fission services and works like using an SSH key to connect to GitHub.
The current version of the fission-cli automatically downloads and runs the ipfs peer-to-peer software that makes for fast publishing. We have a known issue where if you already have ipfs running on your system, there is a conflict. We have a fix in an upcoming release, for now please turn off your local ipfs services with brew services stop ipfs
, quit IPFS desktop, or otherwise follow your local OS instructions.
If you already have an account, you can link it to your local machine. Just enter in your current username and follow the linking flow.
Note: CLI account linking is not yet live, but will be very soon. You can rename your fission key or securely copy it around as workaround for now.
Let's publish a simple webpage with Fission! We will write a simple webpage, register it as a Fission app, and publish it to the web.
Create a project directory and an index.html
file.
mkdir hello-universecd hello-universetouch index.html
Add some content to index.html
:
index.html<html><head><title>Hello Universe!</title></head><body><h1>Hello Universe!</h1><p>This is a Fission powered page.</p><p>Assisted by <a href="https://fission.codes">Fission</a>.</p></body></html>
Run fission app register
command to initialize the webpage as a Fission app. You will be prompted for a build directory.
$ fission app register👷 Build directory (.):
Press enter to set hello-universe
as your build directory, and fission
will initialize your app.
✅ App initialized as big-narrow-fuchsia-elf.fission.app⏯️ Next run fission app publish or fission app publish --watch to sync data💁 It may take DNS time to propagate this initial setup globally.In this case, you can always view your app athttps://ipfs.runfission.com/ipns/big-narrow-fuchsia-elf.fission.app
Fission will create a fission.yaml
file with your app configuration.
fission.yamlignore: []url: big-narrow-fuchsia-elf.fission.appbuild: .
The url
is where your webpage will be on the web after it has been published, build
tells the fission which directory to publish, and ignore
is a list of files and directories to ignore. See the Fission YAML guide for more details.
Run fission app publish
to publish the webpage.
$ fission app publish🚀 Now live on the network📝 DNS updated! Check out your site at:🔗 big-narrow-fuchsia-elf.fission.app
Copy the URL from the last line and paste it into your web browser to view the webpage live on the web. Nice and simple!
It may take a few minutes for DNS to propagate. If you don't see the webpage live at the URL, come back and try again in a bit. You can also take the URL from the CLI output and view the webpage athttps://ipfs.runfission.com/ipfs/{URL}
right away.