2017-01-14 23:11:43 +00:00
Creating a new DApp
===================
If you want to create a blank new app.
.. code :: bash
$ embark new AppName
$ cd AppName
2017-03-05 00:01:05 +00:00
To run Embark then in one console run:
.. code :: bash
$ embark blockchain
And in another console run:
.. code :: bash
$ embark run
2017-01-14 23:11:43 +00:00
DApp Structure
==============
.. code :: bash
2018-03-15 20:11:42 +00:00
app/ # dapp code
contracts/ #smart contracts
2017-01-14 23:11:43 +00:00
config/
2017-03-05 00:01:05 +00:00
|___ blockchain.json #rpc and blockchain configuration
|___ contracts.json #ethereum contracts configuration
|___ storage.json #ipfs configuration
|___ communication.json #whisper/orbit configuration
|___ webserver.json #dev webserver configuration
2017-01-14 23:11:43 +00:00
test/
|___ #contracts tests
2018-03-15 20:11:42 +00:00
dist/
|___ # build folder
chains.json #keeps track of deployments in each chain
2017-01-14 23:11:43 +00:00
2017-03-05 00:01:05 +00:00
Solidity files in the contracts directory will automatically be deployed with `` embark run `` . Changes in any files will automatically be reflected in app, changes to contracts will result in a redeployment and update of their JS Bindings
2018-03-15 20:11:42 +00:00