6. Port Forwarding
Port forwarding is used to use truffle unbox react to create a project with a react front-end. For using it, create a project, go to the "Terminal" panel, and write the below-mentioned command line.
1
truffle unbox react
Copied!
Once you write down this command in the command line, all the libraries for the truffle to create a project with react front-end would be installed and can be accessed from the "Explorer" section, as shown in the figure below.
Supported commands are highlighted in the figure below.
Next, compile and deploy using the below-mentioned commands.
1
truffle develop
2
compile
3
migrate
Copied!
Once you compile these commands, you can see an output as shown in the figure below.
Last modified 3mo ago
Copy link