--- title: Host a single-page website on IPFS description: Learn how to host a simple one-page website on IPFS and link up a domain name. --- # Host a single-page website on IPFS In this tutorial, we will host a simple one-page website on IPFS and link up a domain name. This is the first step is a series of tutorials to teach web developers on how to build websites and applications using IPFS. ::: callout If you are looking for [single-page application (SPA)](https://en.wikipedia.org/wiki/Single-page_application) support, see [redirects and custom 404s](../../how-to/websites-on-ipfs/redirects-and-custom-404s.md) instead. ::: ## Install IPFS desktop IPFS desktop application is the easiest way to get up and running quickly with IPFS. The installation steps for IPFS desktop differ between operating systems. Follow the instructions for your system. | [Windows](#windows) | [macOS](#macos) | [Linux](#linux) | | -------------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | [](#windows) | [](#macos) | [](#linux) | Already downloaded? you can [Skip this step](#add-your-site) ### Windows 1. Download the latest available `.exe` file from the [IPFS desktop downloads page](https://github.com/ipfs/ipfs-desktop/releases):  2. Run the `.exe` file to start the installation. 3. Select whether you want to install the application for just yourself or all users on the computer. Click **Next**:  4. Select the install location for the application. The default location is usually fine. Click **Next**:  5. Wait for the installation to finish and click **Finish**:  6. You can now find an IPFS icon in the status bar:  The IPFS desktop application has finished installing. You can now start to [add your site](#add-your-site). ### MacOS 1. Download the latest available `.dmg` file from the [IPFS desktop downloads page](https://github.com/ipfs/ipfs-desktop/releases):  2. Open the `ipfs-desktop.dmg` file. 3. Drag the IPFS icon into the **Applications** folder:  4. Open your **Applications** folder and open the IPFS desktop application. 5. You may get a warning saying _IPFS Desktop.app can't be opened_. Click **Show in Finder**:  6. Find **IPFS Desktop.app** in your **Applications** folder. 7. Hold down the `control` key, click **IPFS Desktop.app**, and click **Open**:  8. Click **Open** in the new window:  9. You can now find an IPFS icon in the status bar:  The IPFS desktop application has finished installing. You can now start to [add your site](#add-your-site). ### Linux 1. Download the latest available `.deb` file from the [IPFS desktop downloads page](https://github.com/ipfs/ipfs-desktop/releases): 1. Open the `.deb` package in **Software Installer**:  1. Click **Install** and wait for the installation to finish:  1. Click **Applications** or press the Windows key on your keyboard. 1. Search for `IPFS` and select **IPFS Desktop**:  1. You can now find an IPFS icon in the status bar:  The IPFS desktop application has finished installing. You can now start to [add your site](#add-your-site). ## Add your site The next step is to import your site into IPFS using the IPFS desktop app you just installed. The website we'll be using is incredibly simple. The purpose of it is to display random planet-related facts. Each time the page is refreshed, a new fact is displayed. The website is creatively called _Random Planet Facts_. 1. Create a file called `index.html` and paste in the following code: ```html