git clone https://github.com/ajcwebdev/dash-examples.git
cd dash-examples
npm i
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
.
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
.