UI for Cosmos groups module
yarn install- copy over the config
cp .env.local.example .env.local yarn devto run the repo
git clone https://github.com/cosmos/cosmos-sdk and within that directory:
git checkout release/v0.46.x(or current 0.46 release branch)make build
sudo mv build/simd $GOPATH/binsudo ln -s $GOPATH/bin/simd /usr/local/bin/simd
sudo mv build/simd $HOME/go/bin
make local-clean- wipe prior local datamake local-init- set up local user wallets / accounts, seed fundsmake local-start- run local nodemake bank-send- send funds to the wallet address listed below
You'll need to import generated wallet info into Keplr in order to test features:
(from USER2 in the makefile)
high return silly coyote skin trumpet stock bicycle enjoy common exact sure
If you're using VSCode, it's recommended you install the eslint + prettier extensions and copy over the suggested workspace settings:
cp .vscode/settings.suggested.json .vscode/settings.jsonThis project is organized by Atomic Design principals:
📦src
┣ 📂components
┃ ┣ 📂atoms
┃ ┃ ┗ 📜index.ts
┃ ┣ 📂molecules
┃ ┃ ┗ 📜index.ts
┃ ┣ 📂organisms
┃ ┗ 📂templates
┗ 📂pages
Some relevant notes / Highlights:
- Outer padding and margin should be set by parents components - ie, an
Atomshould not havemarginset on the outer element - instead, it would be set by its parent component AtomsandMoleculeshaveindex.tsbarrel files for convenience (ieimport { Box, Button } from '@/atoms'), butOrganisms,Templates, andPagesdo not. This is to avoid circular imports which can impact code splitting
- Chakra - UI Components
- Valtio - global state
- React Query - Query caching
- Zod - form validation
yarn lint - format with Prettier, fix linting errors
Storybook is installed for this project (not all components are inside it yet), but there's currently a bug with vite - to get working, you might have to clear cache after installing local deps:
This issue seems relevant
rm -rf node_modules/.cache/storybook/