Skip to content

Create a project

bonyong lee edited this page Oct 25, 2018 · 3 revisions

Project

A project is a unit to

  • build
  • test
  • package

First, you make a project directory and make it a project.

Structure

$USER_HOME/
  +.aergo_modules/

$PROJECT_HOME/
  | + xxxx/
  + aergo.json

Command

$ mkdir my-first-project
$ cd my-first-project
$ ship init

Project file

Project has aergo.json.

Your aergo.json file is shown like next:

{
  "name" : "bylee/my-first-project",
  "source" : "src/main/lua/main.lua",
  "target" : "app.lua"
}

You can fields as your wants.

Fields and meanings

  • name - project name(same as package name)
  • source - an entry point to build
  • target - a path of build result
  • tests - test source list
  • endpoint - deploy and run target's endpoint
  • privatekey - a private key to deploy and execute contracts.
  • password - a password to decrypt a private key

Clone this wiki locally