Skip to content

A list of great resources to get you going with building dApps using Rust/CosmWasm and CosmJS 😊

Notifications You must be signed in to change notification settings

cudos-examples/dev-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 

Repository files navigation

dev-resources

A list of great resources to get you going with building dApps using Rust/CosmWasm and CosmJS as well as other tools 😊

Overview of the Cudos stack:

The Cudos network is a smart-contract-enabled, layer-1 Cosmos blockchain, which facilitates a network of compute infrastructure for running Virtual Machines.

It is the perfect place to build powerful decentralised applications (dApps) with access both to the consensus-driven underlying blockchain, as well as the cloud infrastructure for the elements of an application that don't require a distributed ledger.

Your flow for building dApps with Cudos:

  1. Get yourself a Cudos wallet address with the help of this guide.
  2. Write a smart contract in Rust, compiled to CosmWasm.
  3. Deploy your smart contract to the blockchain and initialise it, follow the guide here.
  4. Build a frontend application to interact with the blockchain and your contract on it from a neat UI. These interactions are made using CosmJS to the blockchain, which you can think of simply as a database underlying a traditional application.
  5. Deploy your frontend application onto the CudoCompute network in order to host your dApp.

Great resources for each of:

Cudos (The blockchain and compute platform):

Rust (The language used for Cudos smart contracts):

CosmWasm (The smart contract platform that yor Rust contracts are compiled to):

CosmJS (The frontend library for interacting with Cosmos blockchains from a UI):


Run create-cosmos-app on CudoCompute:

Get set up on CudoCompute:

  1. Register an account at CudoCompute
  2. Add an SSH key per the documentation
  3. Create a project as per the documentation
  4. Browse to the project and follow this video to create a Virtual Machine. Note: select Ubuntu Minimal 20.04
  5. SSH into the machine.
  6. (leave feedback on the CudoCompute platform!)

Install create-cosmos-app on Ubuntu 20.04

Follow the the guide in this video with the text steps below:

  1. Update the package manager (press 1 when prompted to):
apt-get update && apt-get -y upgrade
  1. curl node:
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash -
  1. Use apt-get to install nodejs and git:
sudo apt-get install -y nodejs
sudo apt-get install -y git
  1. Use npm to install yarn and create-cosmos-app (npm package here):
npm install --global yarn
npm install -g create-cosmos-app
  1. Run create-cosmos-app:
create-cosmos-app
  1. Name your app and set multi-chain:

? [name] Enter your new app name: my-app

Cloning into 'my-app'...

? [template] which template (Use arrow keys)

> connect-multi-chain

(you may need to now wait a while)

  1. Change directory into your application folder and run yarn:
cd my-app
yarn && yarn dev
  1. Open the IP of your server in a web browser on port 3000, eg (http://34.246.34.92:3000)
  2. (Share any feedback you might have about CudoCompute here)

About

A list of great resources to get you going with building dApps using Rust/CosmWasm and CosmJS 😊

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published