PayID

Getting started with PayID (Part 3) Configuring a domain

By klymacks | Crypto Shilling | 22 Jun 2020


In this next update, I need to configure a domain for use with my PayID server. But to do that, I needed to do some more setup! I had to install several dependencies to be able to setup and configure my GitHub to make this work. I ran into some trouble with cloning the repository. Yup, I'm a newb. I warned you I wasn't a programmer!

Here's what installing that looked like.

Node.js installation

Chocolatey

I had to create and then add a ssh key to my Github before cloning the repository worked.

Let the cloning begin

I had purchased a few domains from Unstoppable Domains prior and even got one free that you can read about here that I'll likely flesh out next personally, but for the purpose of this blog post I thought it would be best to cover a method anyone with a GitHub account can use to host the server. I followed

https://dev.to/hammertoe/hosting-a-payid-on-github-pages-5fp0

where Matt Hamilton performs a walk-through demonstration of configuring just that. Once the repository is successfully cloned, you must navigate into the dir and spin up docker.

Starting the PayID server

PayID cloning completed

Now, it's necessary to create a file named "pay" and I used vim to create that at the root of ~/payid with the following text

{
  "addresses": [
    {
      "paymentNetwork": "XRPL",
      "environment": "MAINNET",
      "addressDetailsType": "CryptoAddressDetails",
      "addressDetails": {
        "address": "rNJo4ozALHi2sE2cJGY5ksrCagzp9B2UdG"
      }
    }
    {
      "paymentNetwork": "BTC",
      "environment": "MAINNET",
      "addressDetailsType": "CryptoAddressDetails",
      "addressDetails": {
        "address": "1KLyMAckScSyZL2aDbjycQ9BCZiw7eE6Hb"
      }
    }
  ],
  "payId": "pay$klymacks.github.io"
}

Make sure that if you use this example that you edit out the PayID and your receiving addresses with your own. Any of the supported currencies should theoretically work!

Then, we push those changes.

More configuring?!

Notice the during the push I was prompted for my GitHub creds. Afterwards, I ran a curl command to confirm that my PayID returns as intended. And it does!

I'll likely post a follow-up with test and final configurations and takeaways. Although I'm not a developer, I could definitely get used to this; I'm having a great time! If this helped you, please consider donating by sending crypto fuel to my PayID development fund- by now you should now the best way to send me funds. :) Thanks for stopping by! 

pay$klymacks.github.io

-klymacks

 

 

How do you rate this article?

3


klymacks
klymacks

Blogger @ Crypto Shilling


Crypto Shilling
Crypto Shilling

I'm going to take about a minute to shill you some crypto project that I'm thinking about in each post. Shillbacks welcomed.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.