Building the first Dapp application (6) - Combining WeBASE-Front to improve the SpringBoot project (DAPP development) - 2021.5.4

Build the first Dapp application (6) - Improve the SpringBoot project with WeBASE-Front (DAPP development)

1. Preconditions

1. Generate SpringBoot project based on SmartDev-Scaffold

2. The FISCO BCOS consortium chain node is opened normally

3. WeBASE-Front service starts normally

2. Check whether the preconditions are met

1. Does the SpringBoot project exist?

insert image description here

2. Is the FISCO BCOS consortium chain node enabled?

insert image description here

3. Is the WeBASE-Front service enabled normally?

insert image description here
insert image description here

3. WeBASE-Front deploys related contracts (contracts under tools/contracts/)

1. Add a test user

insert image description here
insert image description here

2. Export the user key private key and record the value of privateKey

insert image description here
insert image description here

3. Enter the contract and compile it

insert image description here

4. Deploy the relevant contract with the user Key and record the contractAddress value of the EvidenceFactory contract

insert image description here

5. Deploy the relevant contract with the user Key and record the contractAddress value of the Evidence contract

insert image description here
insert image description here

6. Copy the FISCO BCOS node certificate file to the SpringBoot project src/main/resources/conf/ directory

cd evidence
cp ~/fisco/nodes/127.0.0.1/sdk/* src/main/resources/conf/

insert image description here

7. Configure the connection node - modify the application.properties file

insert image description here
insert image description here
insert image description here

8. Return to the SpringBoot project directory and compile and run the SpringBoot project


gradle build -x test

insert image description here

9. Enter the compiled dist directory and execute the jar file


cd dist
java -jar evidence-exec.jar

10. Successful operation shows smooth startup

insert image description here

4. Previous article: Build the first Dapp application (5) - Generate SpringBoot project based on SmartDev-Scaffold

Build the first Dapp application (5) - Generate SpringBoot project based on SmartDev-Scaffold

5. Next article: Build the first Dapp application (7) - Improve the business layer logic of the SpringBoot project (DAPP development)

Build the first Dapp application (7) - Improve the business layer logic of the SpringBoot project (DAPP development)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325789415&siteId=291194637