Build the first Dapp application (6) - Improve the SpringBoot project with WeBASE-Front (DAPP development)
- 1. Preconditions
- 2. Check whether the preconditions are met
- 3. WeBASE-Front deploys related contracts (contracts under tools/contracts/)
-
- 1. Add a test user
- 2. Export the user key private key and record the value of privateKey
- 3. Enter the contract and compile it
- 4. Deploy the relevant contract with the user Key and record the contractAddress value of the EvidenceFactory contract
- 5. Deploy the relevant contract with the user Key and record the contractAddress value of the Evidence contract
- 6. Copy the FISCO BCOS node certificate file to the SpringBoot project src/main/resources/conf/ directory
- 7. Configure the connection node - modify the application.properties file
- 8. Return to the SpringBoot project directory and compile and run the SpringBoot project
- 9. Enter the compiled dist directory and execute the jar file
- 10. Successful operation shows smooth startup
- 4. Previous article: 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)
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?
2. Is the FISCO BCOS consortium chain node enabled?
3. Is the WeBASE-Front service enabled normally?
3. WeBASE-Front deploys related contracts (contracts under tools/contracts/)
1. Add a test user
2. Export the user key private key and record the value of privateKey
3. Enter the contract and compile it
4. Deploy the relevant contract with the user Key and record the contractAddress value of the EvidenceFactory contract
5. Deploy the relevant contract with the user Key and record the contractAddress value of the Evidence contract
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/
7. Configure the connection node - modify the application.properties file
8. Return to the SpringBoot project directory and compile and run the SpringBoot project
gradle build -x test
9. Enter the compiled dist directory and execute the jar file
cd dist
java -jar evidence-exec.jar
10. Successful operation shows smooth startup
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