cosmoverse
v1.0.3
Published
My Cosmoverse Project A full-stack decentralized application built with CosmWasm smart contracts and a React frontend powered by Node.js. π Getting Started Prerequisites Before you begin, ensure you have the following installed: Node.js (v16+ recom
Readme
My Cosmoverse Project A full-stack decentralized application built with CosmWasm smart contracts and a React frontend powered by Node.js. π Getting Started Prerequisites Before you begin, ensure you have the following installed: Node.js (v16+ recommended) β Download Node.js Rust & Cargo β Install Rust CosmJS / Interchain JS for blockchain interactions Keplr Wallet (or similar) for browser-based transactions YouTube YouTube +3 π Project Structure text . βββ contracts/ # CosmWasm Smart Contracts (Rust) βββ client/ # React Frontend (React, Vite/CRA) βββ server/ # Optional Node.js Backend/API βββ package.json # Root dependencies and scripts
nstallation & Setup
Smart Contract (Rust) Navigate to the contracts directory to compile your Wasm binaries: bash cd contracts cargo schema # Generate JSON schemas cargo build # Build the contract
Frontend & Toolchain (Node.js & React) From the project root, install all npm dependencies: bash
Install root and client dependencies
npm install
Or if you have a separate client folder
cd client && npm install
- Environment Configuration Create a .env file in the client/ or server/ directory and add your chain details: env NEXT_PUBLIC_CHAIN_ID=cosmoshub-4 NEXT_PUBLIC_RPC_ENDPOINT=https://cosmos.network
π Running the App Start the React App Run the development server to view your UI at localhost:3000: bash npm start
OR if using Vite
npm run dev Use code with caution.
(Optional) React Cosmos If you are using React Cosmos to develop components in isolation: bash npm run cosmos
π Useful Commands npm run build: Bundles the React app for production. cargo test: Runs unit tests for your smart contracts. npx create-cosmos-app: Tooling for generating new frontend components. GitHub GitHub +4 π License This project is licensed under the MIT License.
