Setting up a Development Environment
To start developing in evan.network, you primarily need need three things:
- You need to connect to the public evan.network blockchain
- You need to set up
nodejs
- You need to install the support libraries
Connecting to evan.network
Assuming you already know what a blockchain is and some basics about how it and the ecosystem works.
evan.network needs a blockchain client and uses Parity for this. The reason to prefer it over Geth is the more extensive toolchain and functionality. Geth and others cannot be used in evan.network, because there are required configurations that are not supported by Geth.
This becomes only relevant in case you want to install the blockchain client on your own machine. Most of the time it is sufficient to configure your applications to connect to one of the evan.network AuthorityNodes.
However, if you do install your own AuthorityNode, you need to use the evan.network testcore blockchain for development. The Parity configuration for this is available here.
The exact configuration of which blockchain client to connect to depends on the application you use, but if you don’t set up your own you can always use wss://testcore.evan.network/ws
for the development blockchain.
The development blockchain is the only one that exists at the moment for the evan.network.
There will be at least one more blockchain, the production chain, which will be called ‘core’ and not ‘testcore’.
You might find it useful for admininistration purposes to start Parity with the --force-ui
parameter, which allows you to access a web-GUI on http://localhost:8180 and provides a more convenient option than the command line for some functionalities.
Create an Identity
To do anything on the blockchain, you need an account: the identity. This is not just relevant for developers and is described here.
Installing Solidity
There are two main options to install Solidity, via native package on Debian/ Ubuntu based distributions:
$ sudo add-apt-repository ppa:ethereum/ethereum
$ sudo apt-get update
$ sudo apt-get install solc
Or via nodejs
:
$ npm install -g solc
There are more options and more details available here.
Setting up nodejs
Setting up nodejs
is pretty straight forward on most operation systems.
You will also need npm
, almost certainly npx
and nvm
, too.
All the basic prerequisites for this, like git
, need to be installed too, but usually the package manager of your OS takes care of this.
At the time nodejs v10.*
is not supported yet though.
Installation the Support Libraries
So far, this seems easy enough. The primary thing to install is the blockchain-core libs. They are written in typescript
and implemented as a npm
package, so the installation should be straight forward, too.
Since the node ecosystem and especially the Ethereum APIs are pretty fast moving environments, it is not unlikely to encounter dependency and version problems though, at least for the time being.
Home |
FAQ |
Github Repo |
Gitter Community |
Website |
Blog |
API docu |
UI docu |
Imprint
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.