Truffle is a framework for developing, compiling and deploying smart contracts.
sudo apt update
sudo apt install nodejs npm
sudo npm install -g truffle
mkdir blockHAX
cd blockHAX
truffle init
This will create the following directories and files
├── contracts
│ └── Migrations.sol
├── migrations
│ └── 1_initial_migration.js
├── test
└── truffle-config.js
contracts - Directory where you will store your smart contract Solidity (.sol) files
migrations - Directory to store files that tell Truffle how to deploy the smart contracts (i.e. which order to deploy them in, any constructors, etc.)
test - location to store test scripts to test Solidity functionality
truffle-config.js - Configuration file that tells Truffle where to deploy contracts (local instance, testnet, mainnet, etc.) and what compiler version to use.
const BlockHAX=artifacts.require("BlockHAXSolidity");
module.exports = function(deployer) {
// deployment steps
deployer.deploy(BlockHAX);
}