Skip to content

ajcwebdev/dash-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A First Look at Dash

Outline

Project Structure

APIs and Scripts

Frontend Example Apps

Setup

Clone Repo and Navigate to Project

git clone https://github.com/ajcwebdev/dash-examples.git
cd dash-examples

Install Project Dependencies

npm i

Set Environment Variables

cp .env.example .env

If you don't already have one, create a wallet:

npm run createWallet

Copy WALLET_ADDRESS and MNEMONIC and paste them into .env.

Start Development Server

npm run express

Run a curl command on the URL with your identity name http://localhost:3001/name/IDENTITY_NAME.

curl "http://localhost:3001/name/IDENTITY_NAME"

This will output:

{
   "$id":"DqeamRwhQE6HNzFvk63ZVTpwBm4AZAss1wv5E46iPkkv",
   "$ownerId":"94uozwXwnuVGyXwYGd5Unzyy9sCTuvqJecVspxadhNo1",
   "$revision":1,
   "label":"ajcwebdevtest",
   "normalizedLabel":"ajcwebdevtest",
   "normalizedParentDomainName":"dash",
   "preorderSalt":"u60YDYG8BUuBcWjfXUGbkTr08JiB8JaKBqmVda3P2WI=",
   "records":{
      "dashUniqueIdentityId":"94uozwXwnuVGyXwYGd5Unzyy9sCTuvqJecVspxadhNo1"
   },
   "subdomainRules":{
      "allowSubdomains":false
   },
   "$protocolVersion":1,
   "$type":"domain",
   "$dataContractId":"GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec"
}

Next, go to one of the frontend framework directories and run the commands in the README.md.

Dash Resources

Dash SDK

About

A monorepo of frontend Dash examples with JavaScript frameworks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published