Getting started with Electrode.io

I’m starting to play with electrode.io, and I have to say that bootstrapping a react project (besides the create-react-app, of course) has never been easier.

First, we need to install a few dependencies

npm install -g electrode-ignite xclap-cli

Next, run the ignite app to enter the interactive CLI

ignite

Below is a sample of a really clean and empty installation. Be sure to add in additional values as you see fit!

Finally, run

clap dev

To see your electrode app in action! If everything goes well, you should see the following at the end:

If you’re having issues (let’s say you’re running this on a virtual machine from a host), make sure ports 2992 and 3000 are opened, and make sure the following is set in xclap.js

process.env.WEBPACKDEVHOST = "<host_or_ip>";

Afterwards, feel free to continue on learning about the structure of the application here! https://docs.electrode.io/introduction/electrode-application/whats-inside

JavascriptAndrew Lien