-
Notifications
You must be signed in to change notification settings - Fork 5
Creating a Project
The first step is to create a Cobra project. You can start working on your new project right away, but chances are you’ll need to clean up some of the existing project information before you do.
You probably use the mkdir
command to create a directory, and then the cd
command to change to that
directory right after.
mkdir ProjectName && cd ProjectName
You can create a bare project template, but for those just getting started, you can run cobra init
,
which are example applications and project templates. We'll use the Greeter box.
Running init(Default Greeter Box)
cobra init
Then you can get cobra configuration file(cobra.yml), Greeter solidity file(Greeter.sol)
and Greeter contract testing file(greeter_test.py). The testing file has two types of testing tools.
The first one is testing tool by Unittest
framework and the last one is testing tool by PyTest
framework at the folder of ProjectName.
Auther Meheret Tesfaye
@2019, Cobra Framework