Skip to content

Commit 9657acb

Browse files
authored
Update quickstart.md
1 parent 3bb8251 commit 9657acb

1 file changed

Lines changed: 122 additions & 74 deletions

File tree

‎quickstart.md‎

Lines changed: 122 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -17,79 +17,127 @@ Please refer to the Docker official website to download and install the latest D
1717
This will be used to interact with the Full and Solidity Nodes via Tron-Web.
1818
Node.JS Console Download(https://nodejs.org/en/)
1919

20-
### Clone TRON Quickstart
21-
22-
23-
24-
25-
## Getting the code with git
26-
27-
* Use Git from the Terminal, see the [Setting up Git](https://help.github.com/articles/set-up-git/) and [Fork a Repo](https://help.github.com/articles/fork-a-repo/) articles.
28-
* develop branch: the newest code
29-
* master branch: more stable than develop.
30-
In the shell command, type:
31-
```bash
32-
git clone https://github.com/tronprotocol/java-tron.git
33-
git checkout -t origin/master
34-
```
35-
36-
* For Mac, you can also install **[GitHub for Mac](https://mac.github.com/)** then **[fork and clone our repository](https://guides.github.com/activities/forking/)**.
37-
38-
* If you'd rather not use Git, [Download the ZIP](https://github.com/tronprotocol/java-tron/archive/develop.zip)
39-
40-
## Including java-tron as dependency
41-
42-
* If you don't want to checkout the code and build the project, you can include it directly as a dependency
43-
44-
**Using gradle:**
45-
46-
```
47-
repositories {
48-
maven { url 'https://jitpack.io' }
49-
}
50-
dependencies {
51-
implementation 'com.github.tronprotocol:java-tron:develop-SNAPSHOT'
52-
}
53-
```
54-
55-
**Using maven:**
56-
57-
```xml
58-
...
59-
<repositories>
60-
<repository>
61-
<id>jitpack.io</id>
62-
<url>https://jitpack.io</url>
63-
</repository>
64-
</repositories>
20+
### Clone TRON Quickstart
21+
```shell
22+
git clone https://github.com/tronprotocol/docker-tron-quickstart.git
23+
```
24+
25+
## Setup TRON Quickstart
26+
### TRON Quickstart Build
27+
Run the docker run command to launch TRON Quickstart. TRON Quickstart exposes port 9090 for Full Node, Solidity Node, and Event Server.
28+
```shell
29+
docker run -it --rm -p 9090:9090 --name tron -e "defaultBalance=100000" -e "showQueryString=true" -e "showBody=true" -e "formatJson=true" tron
30+
```
31+
32+
***Run Output:
33+
```shell
34+
Tron Quickstart v2.0.0
35+
36+
37+
Start nodes and event server...
38+
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
39+
[PM2] PM2 Successfully daemonized
40+
[PM2][WARN] Applications eventron not running, starting...
41+
[PM2] App [eventron] launched (1 instances)
42+
┌──────────┬────┬─────────┬──────┬─────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
43+
│ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
44+
├──────────┼────┼─────────┼──────┼─────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
45+
│ eventron │ 0 │ N/A │ fork │ 48 │ online │ 0 │ 0s │ 0% │ 24.8 MB │ root │ disabled │
46+
└──────────┴────┴─────────┴──────┴─────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
47+
Use `pm2 show <id|name>` to get more details about an app
48+
Start the http proxy for dApps...
49+
[HPM] Proxy created: / -> http://127.0.0.1:18191
50+
[HPM] Proxy created: / -> http://127.0.0.1:18190
51+
[HPM] Proxy created: / -> http://127.0.0.1:8060
52+
53+
Tron Quickstart listening on http://127.0.0.1:9090
54+
55+
56+
57+
ADMIN /admin/accounts-generation
58+
Sleeping for 1 second... Slept.
59+
Waiting when nodes are ready to generate 10 accounts...
60+
(1) Waiting for sync...
61+
Sleeping for 1 second... Slept.
62+
Sleeping for 1 second... Slept.
63+
Sleeping for 1 second... Slept.
64+
Sleeping for 1 second... Slept.
65+
Sleeping for 1 second... Slept.
66+
(2) Waiting for sync...
67+
Sleeping for 1 second... Slept.
68+
Sleeping for 1 second... Slept.
69+
Sleeping for 1 second... Slept.
70+
Sleeping for 1 second... Slept.
71+
Sleeping for 1 second... Slept.
72+
(3) Waiting for sync...
73+
Sleeping for 1 second... Slept.
74+
Sleeping for 1 second... Slept.
75+
Sleeping for 1 second... Slept.
76+
Sleeping for 1 second... Slept.
77+
Sleeping for 1 second... Slept.
78+
(4) Waiting for sync...
79+
Sleeping for 1 second... Slept.
80+
Sleeping for 1 second... Slept.
81+
Sleeping for 1 second... Slept.
82+
Sleeping for 1 second... Slept.
83+
(5) Waiting for sync...
6584
...
66-
<dependency>
67-
<groupId>com.github.tronprotocol</groupId>
68-
<artifactId>java-tron</artifactId>
69-
<version>develop-SNAPSHOT</version><!--You can use any of the tag/branch name available-->
70-
</dependency>
71-
```
72-
73-
74-
75-
76-
## Building from source code
77-
78-
* Build in the Terminal
79-
80-
```bash
81-
cd java-tron
82-
./gradlew build
85+
Loading the accounts and waiting for the node to mine the transactions...
86+
(1) Waiting for receipts...
87+
Sending 100000 TRX to TU8E4BzdGg4adqTyRCEZrrkq2EXsUYHG2k
88+
Sending 100000 TRX to TGBN88CQN74i89Gy25749SUZr1HcTufF6z
89+
Sending 100000 TRX to TWtStDLxF7gAkYbrMgSAbKsNdXY2qMUSv5
90+
Sending 100000 TRX to TTvYtVvHKpdg9Q2Sfhc4uSsrNbtJV8DiJS
91+
Sending 100000 TRX to TTiJtZRijXeGDEQgQUK5eXcTchTt69siva
92+
Sending 100000 TRX to TDT6oLuRmVkHp3npeztqQR1g63KxcugFK9
93+
Sending 100000 TRX to TE8BVrC4MoqtFfsMJviERPn8vW1Uh8Mcdn
94+
Sending 100000 TRX to TADf7t8afXBTaHqyYLqRqxyrsPvwykxndv
95+
Sending 100000 TRX to TJ71yAB1Cq4Cw2TEq6Z6dwP6dJTB7vH75C
96+
Sending 100000 TRX to TPF46hEmM3AYWz9D2ix3yVpdePvyjdmJXd
97+
Sleeping for 3 seconds... Slept.
98+
(2) Waiting for receipts...
99+
Sleeping for 3 seconds... Slept.
100+
(3) Waiting for receipts...
101+
Sleeping for 3 seconds... Slept.
102+
(4) Waiting for receipts...
103+
Sleeping for 3 seconds... Slept.
104+
(5) Waiting for receipts...
105+
Sleeping for 3 seconds... Slept.
106+
(6) Waiting for receipts...
107+
Done.
108+
109+
Available Accounts
110+
==================
111+
112+
(0) TU8E4BzdGg4adqTyRCEZrrkq2EXsUYHG2k (100000 TRX)
113+
(1) TGBN88CQN74i89Gy25749SUZr1HcTufF6z (100000 TRX)
114+
(2) TWtStDLxF7gAkYbrMgSAbKsNdXY2qMUSv5 (100000 TRX)
115+
(3) TTvYtVvHKpdg9Q2Sfhc4uSsrNbtJV8DiJS (100000 TRX)
116+
(4) TTiJtZRijXeGDEQgQUK5eXcTchTt69siva (100000 TRX)
117+
(5) TDT6oLuRmVkHp3npeztqQR1g63KxcugFK9 (100000 TRX)
118+
(6) TE8BVrC4MoqtFfsMJviERPn8vW1Uh8Mcdn (100000 TRX)
119+
(7) TADf7t8afXBTaHqyYLqRqxyrsPvwykxndv (100000 TRX)
120+
(8) TJ71yAB1Cq4Cw2TEq6Z6dwP6dJTB7vH75C (100000 TRX)
121+
(9) TPF46hEmM3AYWz9D2ix3yVpdePvyjdmJXd (100000 TRX)
122+
123+
Private Keys
124+
==================
125+
126+
(0) be3179ecdde173172001922024e631f42dbedda4a897990d6f67a8f3075d4b4a
127+
(1) 6983092e286ee240e13e404d828d4ff65eb048c06958b7c956fcc35d8dc72dfa
128+
(2) 14afd09c60731007d728491529dc5e60d416dac0a41cc585fcbf7b24456216af
129+
(3) 3858720883b55c215e8d6cf1c3a273cc1f7f2885bdbf9039908835bc9386c3d8
130+
(4) 2ee3e1b2939b4369c603d53c10c8a0b0365438ab21a6f3bc0dba944a07c3e3b6
131+
(5) 7fe368488e8e291b518733e577c9ba6086831fbd6cb6c15ad1d488641604949b
132+
(6) 415f6afbe240e60d39cb813756d74a9fd596ea37ec188993738f1cc273285ce3
133+
(7) c65f5bb0eb63d6894d56b78a3a07208446e6ed1395fc380d5d6aa90355aa8785
134+
(8) 4c43f458d7866b80ba56a02ad664b3bcd393990efbabebaaca7aa154b4d08362
135+
(9) 93363a1e9ead687aeac03ed40abe30fee72d990b578bf6d36ab90438561dd037
136+
137+
HD Wallet
138+
==================
139+
Mnemonic: slice beach ensure roof mercy tired sail achieve payment flower suggest sad
140+
Base HD Path: m/44'/60'/0'/0/{account_index}
141+
142+
GET 200 - 41874.921 ms
83143
```
84-
85-
86-
* Build in [IntelliJ IDEA](https://www.jetbrains.com/idea/) (community version is enough):
87-
88-
**Please run ./gradlew build once to build the protocol files**
89-
90-
1. Start IntelliJ. Select `File` -> `Open`, then locate to the java-tron folder which you have git cloned to your local drive. Then click `Open` button on the right bottom.
91-
2. Check on `Use auto-import` on the `Import Project from Gradle` dialog. Select JDK 1.8 in the `Gradle JVM` option. Then click `OK`.
92-
3. IntelliJ will open the project and start gradle syncing, which will take several minutes, depending on your network connection and your IntelliJ configuration
93-
4. Enable Annotations, `Preferences` -> Search `annotations` -> check `Enable Annotation Processing`.
94-
5. After the syncing finished, select `Gradle` -> `Tasks` -> `build`, and then double click `build` option.
95-

0 commit comments

Comments
 (0)