8, Solidity programming language development framework to create a project

Create project directory

First create a project directory. You can use your favorite file browser or create a directory on the command line with:

$ mkdir myproject

Initialize your project

Next, initialize a Truffle project with the following command:

$ truffle
Truffle v3.4.11 - a development framework for Ethereum
$ cd myproject
$ truffle init

Once done, you will have a directory like this:

  • app/ - The default directory where your app files will run. This includes recommended directories for javascript files and css style files, but it is up to you to decide how to use these directories.
  • contract/ - Truffle's default contract file storage address.
  • migrations/ - holds release script files
  • test/ - test files for testing applications and contracts
  • truffle.js - Configuration file for Truffle

Default project: METACOIN

truffle initA token demo application built in Ethereum will be created by default. We can use this project for quick learning, or you can delete these files to create a project of your own. What does technical finishing learn? Net finishing

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325809868&siteId=291194637