Generator EthApp

89762

Getting Started

What is this generator about?

{proj} is all about getting started quickly. Running this generator will build a simple dapp for Ethereum. Better than just a boilerplate, the generated file is already tuned with your name, etc…​

Read on a give a try.

What is Yeoman?

Trick question. It’s not a thing. It’s this guy:

JHaAlBJ

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the [npm](https://npmjs.org) package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

npm install -g yo

Yeoman Generators

Yeoman travels light. He didn’t pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.

To install generator-ethdapp from npm, run:

npm install -g generator-ethdapp

Finally, initiate the generator:

yo ethdapp

Getting To Know Yeoman

Yeoman has a heart of gold. He’s a person with feelings and opinions, but he’s very easy to work with. If you think he’s too opinionated, he can be easily convinced.

If you’d like to get to know Yeoman better and meet some of his friends, [Grunt](http://gruntjs.com) and [Bower](http://bower.io), check out the complete [Getting Started Guide](https://github.com/yeoman/yeoman/wiki/Getting-Started).

Generating your Dapp

For a generic Dapp:

yo ethdapp

For a Dapp taylored to Parity:

yo ethdapp:parity

Then answer the questions. Once you are done, run the deploy script:

./deploy.sh

Then (re)start Parity:

parity ui

You will see your app listed there:

parity

Click on that link and you will see your DAPP:

generated

Avatar
Wilfried Kopp
Building Blockchains & Decentralized Solutions

I am building decentralized solutions and tooling to support them. I am developing Smart Contracts on Ethereum and Substrate while aspiring at being more proficient in Rust. GPG Fingerprint 15AF C574 D3F9 F1C3 CCDD E31E 2DCE C4DC 506E 6475

Related