- Install Node.js. Tested for version 14.
- Install Yarn. Tested for version 1.22.
-
With the v0.4.0 release of the
CosmWasm/dApps
monorepo cloned, copy the_template
directory topackages/
and rename it to your app's name. -
Customize
README.md
andpackage.json
's fields as you want. -
Customize the
Login
component according to@cosmicdapp/design
'sLogin
component'sREADME.md
. -
In the root directory of the monorepo, run:
yarn yarn build-deps
-
In the packages/
[your-app]
directory, run:yarn start
-
Bootstrap a Create React App project preloaded with
@cosmicdapp
'slogic
anddesign
libraries.Run the following command in any directory you want:
yarn create react-app [your-app] --template @cosmicdapp/cra-template
Or if you prefer to use
npm
:npx create-react-app [your-app] --template @cosmicdapp/cra-template
-
Customize
README.md
andpackage.json
's fields as you want. -
In
[your-app]
directory, run:yarn yarn build-deps
-
And then:
yarn start
The bootstraped project has cw20-base
types included in src/contracts/types
.
In order to generate types from another contract you might need, follow these steps:
-
Copy the contract into
src/contracts/[your-contract]
. -
In
src/contracts
, run:./scripts/make_dts.sh ./[your-contract]