-
Notifications
You must be signed in to change notification settings - Fork 4
Create a project
bonyong lee edited this page Oct 25, 2018
·
3 revisions
A project is a unit to
- build
- test
- package
First, you make a project directory and make it a project.
$USER_HOME/ +.aergo_modules/ $PROJECT_HOME/ | + xxxx/ + aergo.json
$ mkdir my-first-project
$ cd my-first-project
$ ship init
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.
- 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