<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[mitchyugancosmology]]></title><description><![CDATA[mitchyugancosmology]]></description><link>https://mitchyugancosmology.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 18:44:16 GMT</lastBuildDate><atom:link href="https://mitchyugancosmology.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Cosmology. One command to Setup a  Modern Cosmos dApp: `create-cosmos-app`]]></title><description><![CDATA[The Cosmos ecosystem is experiencing explosive growth! New blockchains are continuously joining the "Internet of Blockchains", creating a vibrant landscape of interoperable applications.

But developers who want to start building on Cosmos might find...]]></description><link>https://mitchyugancosmology.hashnode.dev/cosmology-one-command-to-setup-a-modern-cosmos-dapp-create-cosmos-app</link><guid isPermaLink="true">https://mitchyugancosmology.hashnode.dev/cosmology-one-command-to-setup-a-modern-cosmos-dapp-create-cosmos-app</guid><category><![CDATA[#create-cosmos-app]]></category><category><![CDATA[cosmology]]></category><category><![CDATA[dapps]]></category><category><![CDATA[cosmos]]></category><category><![CDATA[Blockchain]]></category><dc:creator><![CDATA[Mitchyugan]]></dc:creator><pubDate>Sun, 22 Sep 2024 08:41:48 GMT</pubDate><content:encoded><![CDATA[<p>The Cosmos ecosystem is experiencing explosive growth! New blockchains are continuously joining the "Internet of Blockchains", creating a vibrant landscape of interoperable applications.</p>
<p><img src="https://cosmology.zone/_next/static/chunks/images/lessons/chain-registry-01/chain-registry_1920.webp" alt="Cosmology" /></p>
<p>But developers who want to start building on Cosmos might find it intimidating; <em>don't even know where to start</em>. That's where <code>create-cosmos-app</code> comes in – a powerful tool designed to streamline the process.</p>
<p>With a single command, you can scaffold a development-ready frontend DApp that is pre-configured to connect with various Cosmos blockchains. e.g. Osmosis, Injective, etc... Imagine an application equipped with a sleek UI toolkit built with Next.js, a seamless wallet connection modal, and all the essentials to jumpstart your development journey. Awesome right? ... right? :)</p>
<p>Ready to dive in? Let's get started!</p>
<p>First things first, install the <code>create-cosmos-app</code> tool using this command: <code>npm install -g create-cosmos-app</code> then check the version using <code>cca -v</code>. if installed correctly you should see this output:</p>
<blockquote>
<p>(Alternatively, you can replace <code>npm</code> with <code>npx</code> if you prefer than)</p>
</blockquote>
<pre><code class="lang-bash">cca -v
2.3.3
</code></pre>
<p>To build our Dapp we need to Scaffold one, so let's go through the steps.</p>
<ol>
<li><p>We'll scaffold a dApp using this command: <code>npx create-cosmos-app@latest</code> , which leads you to:</p>
<ul>
<li><p>Enter your new app name, e.g cosmos-dapp</p>
</li>
<li><p>Choose a template using the arrow keys. <strong><em>connect-chain</em></strong> gives you a wallet connection that defaults to one chain, while <strong><em>connect-multi-chain</em></strong> as you might have already guessed enables the connection of multiple chains, this is the best template when building a multi-chain app. we'll go with <strong><em>connect-multi-chain</em></strong> for this guide.</p>
</li>
</ul>
</li>
</ol>
<pre><code class="lang-bash">    npx create-cosmos-app@latest
    ? [name] Enter your new app name cosmos-dapp
    Cloning into <span class="hljs-string">'cosmos-dapp'</span>...
    ? [template] <span class="hljs-built_in">which</span> template (Use arrow keys)
      connect-chain
    ❯ connect-multi-chain

    ➤ YN0000: · Yarn 4.3.0
    ➤ YN0000: ┌ Resolution step
    ➤ YN0085: │ - @yarnpkg/lockfile@npm:1.1.0, commander-plus@npm:0.0.6, generate-lockfile@npm:0.0.12, keypress@npm:0.1.0
    ➤ YN0000: └ Completed <span class="hljs-keyword">in</span> 0s 356ms
    ➤ YN0000: ┌ Post-resolution validatio

                     |              _   _
         ===         |.===.        <span class="hljs-string">'\-//`
        (o o)        {}o o{}        (o o)
    ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-

    ✨ Have fun! Now you can start on your project ⚛️

    Now, run this command:

    cd ./cosmos-dapp &amp;&amp; yarn dev</span>
</code></pre>
<ol start="2">
<li>After the command has finished running and installed all the dependencies, go ahead and run the last command printed out: <code>cd ./cosmos-dapp &amp;&amp; yarn dev</code>, this will change directory into the dApp folder and start a server.</li>
</ol>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> ./cosmos-dapp &amp;&amp; yarn dev
  ▲ Next.js 13.5.6
  - Local:        http://localhost:3000

 ✓ Ready <span class="hljs-keyword">in</span> 5.7s
</code></pre>
<p>Next, copy the localhost URL in your browser. The dApp is configured to connect to the Cosmos Hub chain by default chain. You should see something similar to this in your Browser(The base components for this Template):</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1721409646957/1a06ebf8-1272-4d31-9928-d57cf4a456f3.png" alt class="image--center mx-auto" /></p>
<p>Effectively create-cosmos-app created an integration between Cosmos-kit, CosmJs, Interchain-UI, NextJs, and Chain-registry. And it gives you a fast way to start building apps with everything already bundled for you.</p>
<ol start="3">
<li><p>You can choose a chain you want to connect to using the drop-down or searching for it, then click the "Connect Wallet" button and choose Keplr(hoping you have it installed), Approve the prompt to add to Chain to Keplr and Sign the transaction:</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1721829417080/823d7a22-91e2-429d-8245-9013dc70b85e.png" alt class="image--center mx-auto" /></p>
</li>
</ol>
<p>You can also scroll down and see other content, This was added here to help educate you on some of the other tools you should be working with.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1721829277890/b4f32b1c-911f-4c1e-b9a0-88d5d864bbb8.png" alt class="image--center mx-auto" /></p>
<p>For Example:</p>
<ul>
<li><p><strong>Cosmos-Kit:</strong> ⚡️Connect easily to 20+ wallets using Cosmos-Kit including Ledger, Keplr, Cosmostation, Leap, Trust Wallet, OKX, XDEFI, Exodus, Wallet Connect, and more!</p>
</li>
<li><p><strong>Telescope:</strong> For working with SDK messages</p>
</li>
<li><p><strong>Ts Codegen:</strong> For CosmWasm and creating nice Java-Script SDKs</p>
</li>
<li><p><strong>Chain-registry:</strong> For... and Links and videos to learn.</p>
</li>
</ul>
<hr />
<hr />
<p>Happy Building 💙 From Cosmology</p>
]]></content:encoded></item></channel></rss>