Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Creating a Project

Meheret Tesfaye edited this page Aug 4, 2019 · 3 revisions

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.

Clone this wiki locally