• R/O
  • HTTP
  • SSH
  • HTTPS

Bytom-Dapp-Demo: Commit

A simple deposit and profit bytom dapp demo


Commit MetaInfo

Revision2d4003a219bd3e6de7c63a411fae07243f36d01d (tree)
Zeit2019-03-12 16:10:02
AutorZhiting Lin <zlin035@uott...>
CommiterZhiting Lin

Log Message

update README.md

Ändern Zusammenfassung

Diff

--- a/README.md
+++ b/README.md
@@ -1,25 +1,23 @@
11 # Bytom-Dapp-Demo
22
33
4-## what is this?
4+## What is this?
55 A simple deposit and profit bytom dapp demo, Bytom-Chrome-Extension needed before it can be used.
66
7-
87 ## Setup
9-Make sure you have the NodeJs installed before you started.
10-start the webpack dev server:
8+- Install [Node.js](https://nodejs.org) version 8 and the latest available npm@6.
9+- Install dependencies: `npm install`.
1110
12-```
13-npm start
14-```
15-Your server should now be running at http://127.0.0.1:8080
11+### Buffer Server
12+Before run all the project, you may need to set up you own [bufferserver](https://github.com/oysheng/bufferserver). Configure the proxy rules under the `webpack.config.js`.
13+
14+### Deploy Contract
15+Currently we are manually deploy the contract using the [equity compiler tool](https://github.com/Bytom/equity), and configure the `control program` constants accordingly.
1616
1717 ### Contract configuration
1818 Network and smart contract control program's constants configurations are stored under the `contracts/configure.json.js` file.
1919 You may edit the configure after an new control program is launched.
2020
21-*Note: Currently we are manually deploy the contract using the [equity compiler tool](https://github.com/Bytom/equity), and configure the `control program` constants accordingly.
22-
2321 ### Input and Output Object
2422 #### Input
2523 The first Input object must be spend utxo action, utxo will be selected according to the amount matches.
@@ -56,6 +54,17 @@ Will need to be converted into
5654 }
5755 ```
5856
57+
58+## Run the Project
59+
60+Make sure the contracts are compiled, built the correct input output object and bufferserver is running.
61+
62+Start the Webpack dev server.
63+
64+`npm start`
65+
66+Your server should now be running at http://127.0.0.1:8080
67+
5968 ## Building the Project
6069
6170 `npm run build`
Show on old repository browser