Skip to content
/ oxysell Public template
forked from creepto/forsale

Domain for sale HTML template

Notifications You must be signed in to change notification settings

kaustubhk24/oxysell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.crypto Domain For Sale single-page

How to deploy the site to IPFS and point your new domain to it

Important note

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.

1. Setup

  1. Clone this repo, or download the zip
  2. Get your .crypto domain at Unstoppable Domains - I do not use referral links. Ever.
  3. 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)

2. Edit the code

Feel free to change the messaging, add initial price etc. - make the site your own. There are 2 ways to build the site:

2.1 Build the site manually (beginner)

  1. Edit the index.html and replace these strings:
    1. Replace %MYDOMAIN% -> with the domain name you're selling
    2. Replace %MYEMAIL% -> with the email you want people to use to contact you
    3. Replace %MYTELEGRAM% -> with your Telegram user or remove this section if you don't have/want one
    4. Replace %MYTWITTER% -> with your Twitter user or remove this section if you don't have/want one
  2. You can also remove the script section at the bottom of the page, if you handled the Twitter/Telegram sections manually
  3. Copy the index.html and the assets 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

2.2 Build the site automatically (advanced)

  1. Install all dependencies: yarn install or npm install
  2. 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.
  3. Run the build command: yarn build or npm run build.
    This will replace all the strings in the HTML and create a build folder with all the assets. In the next step we'll upload this folder

3. Uploading the files

  1. Log into Pinata, and then select Pinata Upload from the top menu
  2. 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)
  3. After a few seconds, your folder is uploaded. Navigate to "Pin Explorer", and copy the IPFS Hash

4. Pointing our domain to the site

  1. Go back to Unstoppable Domains, select "My Domains" from the menu, select your domain and click the "Manage" button
  2. Click the "website" link
  3. Paste the IPFS Hash, click "Save Changes" and approve the transaction
  4. Depending on network traffic, the transaction will take from 30 seconds to 30 minutes. You can check the progress in the "My Transactions" view
  5. Once done, you can browse to yourdomain.crypto and see the for sale page!

About

Domain for sale HTML template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 62.3%
  • CSS 36.8%
  • Shell 0.9%