Creating a project

Create a Houston project

To use most of the Houston commands, you need to run commands on initialized Houston projects. So the first step is to create a Houston project. You can create a starter project template, but for those who are getting started, you can use Houston Cargos, which are example applications and project templates. We'll use MyTerraToken box, which creates a token that can be transferred between accounts:

  1. Create a new directory for your Houston project

$ mkdir myProject
$ cd myProject

Other project templates can be downloaded with unbox command.

To create a starter project template, run houston init.

Once this operation is completed, you'll now have a project structure with the following items:

myProject/
  |- contracts
  | |- starter
  |- wasm
  |- schema
  |- migrations
  | |- 0_deploy_starter.ts 
  |- package.json
  |- tsconfig.json

contracts/ : directory for cosmwasm contracts

wasm/ : wasm binaries for compiled smart contracts

schema/ : schemas of smart contracts

migrations/ : Directory for migration scripts for testing/deploying your smart contracts

package.json: package manager for migration scripts. you can add other network's client SDK package to deploy smart contracts in multiple blockchain with the migration scripts

tsconfig.json: Typescript configuration for migration scripts

Last updated