Embark_Quick_Start.md
1 ### Installation 2 3 First make sure you have installed Embark, preferably using NVM. 4 See install instructions 5 6 ### Create demo app 7 8 <code>`$ embark demo` 9 `$ cd embark_demo`</code> 10 11 ### Start a blockchain node or let Embark start it for you 12 13 Note: starting in Embark 3.1, the command `embark run` will 14 automatically start a blockchain node if one isn’t already running. You 15 may, therefore, skip this step. 16 17 You can run a REAL ethereum node for development purposes: 18 19 `$ embark blockchain` 20 21 Alternatively, to use an ethereum rpc simulator simply run: 22 23 `$ embark simulator` 24 25 By default Embark blockchain will mine a minimum amount of ether and 26 will only mine when new transactions come in. 27 28 If you want, you can skip this step, as `embark 29 run`, `build` and `upload` now all start a blockchain node in a 30 separate process if there is not one already started using the same 31 configurations. 32 33 ### Start Embark 34 35 Then, in another command line: 36 37 `$ embark run` 38 39 This will open up the embark Dashboard 40 41 The dashboard will tell you the state of your contracts, the environment 42 you are using, and what Embark is doing at the moment. 43 44 **available services** 45 46 Available Services will display the services available to your dapp in 47 green. If a service is down, then it will be displayed in red. 48 49 **logs and console** 50 51 There is a console at the bottom which can be used to interact with 52 contracts or with Embark itself. Type `help` to see a list of available 53 commands. More commands will be added with each version of Embark. 54 55 Embark will then compile & deploy the contracts, update their JS 56 bindings and deploy your DApp to a local server 57 at [<http://localhost:8000>](http://localhost:8000/) 58 59 > **without the dashboard** 60 61 Note that if you update your code, it will automatically be re-deployed, 62 contracts included. There is no need to restart embark, refreshing the 63 page on the browser will do.