To turn up the entire project, we will have to deploy the sub-component of this project. The source has been taken from GitHub, which can be found at the following link: https://github.com/hoxxep/Ethereum-2FA.
This has the following files in it:
The files in the preceding screenshot are explained as follows:
- contracts: This folder includes our smart contract, TwoFactorAuth.sol
- migrations: This folder consists of migration files to deploy the contract to the blockchain
- test: This folder consists of server.js, which is responsible for event authentication in our contract
- node_modules: This folder includes all the libraries
- truffle.js: This configuration file consists of a set of configurations to connect to the blockchain
- package.json: This is where we specify a configuration of our project, such as name and scripts