Lab
In order to deploy the blockchain-based DDoS protection platform, we must prepare the test environment with Node.js and Truffle with Ethereum blockchain. We will be using an existing blockchain project to defend a network from a DDoS attack. The project link can be found at https://github.com/gladiusio/gladius-contracts.
We need to follow these steps to prepare the infrastructure for the Gladius project:
- First, we will install Node.js in our environment at https://nodejs.org/uk/download/package-manager/#arch-linux.
- We need to install
truffle
in test the environment:
npm install -g truffle
- Run the following command in the Terminal:
npm install -g ganache-cli
- Now, we can start the test network with this command in the Terminal:
ganache-cli
The following screenshot shows the output of running the preceding command:
- In this Terminal window, we can see all transactions in the test blockchain network. Now, we have to open a new Terminal window and need to jump into the working directory.
To set up the...