Check out the demo: https://creepto.github.io/forsale/.
At the time of this writing, only Opera browser supports .crypto domains. To see them in Chrome/Brave/Edge, install the Unstoppable Domains Chrome Extension from the Chrome Webstore. In the futture, more browsers will be able to redirect to .crypto domains outt of the box.
- Clone this repo, or download the zip
- Get your .crypto domain at Unstoppable Domains - I do not use referral links. Ever.
- The easiest way to publish your HTML to IPFS is using a service called Pinata. So go there, create a free user (good for 1GB)
Feel free to change the messaging, add initial price etc. - make the site your own. There are 2 ways to build the site:
- Edit the
index.html
and replace these strings:- Replace %MYDOMAIN% -> with the domain name you're selling
- Replace %MYEMAIL% -> with the email you want people to use to contact you
- Replace %MYTELEGRAM% -> with your Telegram user or remove this section if you don't have/want one
- Replace %MYTWITTER% -> with your Twitter user or remove this section if you don't have/want one
- You can also remove the script section at the bottom of the page, if you handled the Twitter/Telegram sections manually
- Copy the
index.html
and theassets
folder to a temp folder on your machine. We do this to avoid uploading the other files in this repo (like this README) to IPFS as they're not needed. In the next step we'll upload this folder
- Install all dependencies:
yarn install
ornpm install
- Create a
.env
file at the root of the directory. It expects 4 variables. See the file.env.sample
.
The%MYTWITTER%
and%MYTELEGRAM%
variables can be left empty, but the domain name and email are manadatory. - Run the
build
command:yarn build
ornpm run build
.
This will replace all the strings in the HTML and create abuild
folder with all the assets. In the next step we'll upload this folder
- Log into Pinata, and then select Pinata Upload from the top menu
- Select the "Upload Directory" button, browse to your temp folder, and type a name that will remind you what this site is (like your domain name)
- After a few seconds, your folder is uploaded. Navigate to "Pin Explorer", and copy the IPFS Hash
- Go back to Unstoppable Domains, select "My Domains" from the menu, select your domain and click the "Manage" button
- Click the "website" link
- Paste the IPFS Hash, click "Save Changes" and approve the transaction
- Depending on network traffic, the transaction will take from 30 seconds to 30 minutes. You can check the progress in the "My Transactions" view
- Once done, you can browse to yourdomain.crypto and see the for sale page!