How to deploy a static website for free in only 3 minutes with Google Drive
Tags: webdev, beginners, tutorial, html
Published: 2020-01-15 12:25:17

Discover how to deploy a static website for free in only 3 minutes using Fast.io. A beginner's guide to doing it with a cloud storage such as Google Drive.

**Disclaimer**

In this article, I'm going to share with you a new service called Fast.io.

I'm not sponsored by them to create this article. I'm just writing on it because I found the solution exciting and useful to host a static website for free.

## What is Fast.io

Fast.io is a solution created by Mediafire to simplify how the web. In a few terms, their goal is to make your life easier by making the web more accessible and manageable.

If today I'm sharing this website with you, it's because they launched it at the end of 2019.

### How it works

With this solution, you will be able in a few clicks to connect to your cloud (Google Drive, DropBox, etc.), choose a website name, and deploy your content.

If your content is ready, only 3 minutes are required to put your content online and accessible to everyone.

Once your website is online, you can configure it, add a custom domain name, and connect Google Analytics to know how many people you are reaching.

I didn't tell you, but the service automatically updates your website once you modify the source files. For example, if you are using Google Drive to share your content, once you change something in your HTML page, it will be updated.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-how-it-works.png)Fast.io - [How it works](https://fast.io/)

### Available storage provider

I give you a list of available storage provider the day were I publish my article:

- GitHub
- Dropbox
- Google Drive
- Box
- Mediafire
- OneDrive

We can imagine this list is going to grow up with new services. What I wanted to show you is that you have many possibilities to host your static website.

### Competitors

It exists different companies creating a solution to put online quickly a static website. The most famous solutions are GitHub Pages, Heroku, and Netlify.

I'm not telling you Fast.io is the best one, but what I like about it is the simplicity of deploying a simple website.

If you want to deploy something more complex like a Python Flask website, you can't do it with Fast.io.

In this case, I highly recommend using Heroku.

As I told you, I'm transparent with you. It's an excellent service to do some tasks.

## What is a static website

Before showing you how to deploy your website, I think it's essential to define what is a static website and what is the difference with a dynamic one.

A static website contains web pages with fixed content. The content of your page is in HTML, and all users see the same thing.

For example, you can use this website type when you want to do a landing page for your website (a basic page with information about your product).

The main difference with a dynamic website is obviously… the dynamic part!

A dynamic website uses a server technology to build the page when a user requests the website.

For example, you can use this website type for your blog. Every time you're going to add a new article in your database, the website will display it.

## It’s time to deploy your website

Are you ready to share your page to everyone? Let’s do it!

In this part, I will show you how to put your website online in a few clicks. I’m going to use a basic HTML page, but once you understand how Fast.io works, you are free to modify everything.

[Feel free to send me a message on Twitter](https://twitter.com/gaelthomas_) if you have any questions or to get the last updates and follow my activities.

### 1) Create a index.html file

You need to create an index.html file with your HTML code inside. I recommend you to start with something simple because you can update it later.

Save the file on your computer.

    <!DOCTYPE html>
    <html>
      <head>
        <title>My Static Website</title>
      </head>
      <body>
        <h1>My Static Website</h1>
        <p>
          Hello, I'm online, and everyone can see me!
        </p>
      </body>
    </html>

Index.html example
### 2) Open Fast.io homepage
![](https://herewecode.io/blog/content/images/2020/01/fast-io-homepage.png)[Fast.io](https://fast.io) homepage

All you need to do to start with Fast.io is opening the website. Once you did it, click on **"Sign up now - it's free!"**.

### 3) Configure Google Drive
![](https://herewecode.io/blog/content/images/2020/01/fast-io-storage-provider.png)Fast.io - Storage provider

This page appears after step 2, and you can select a storage provider. Select **"Google Drive"**.

If you want to create a website with another provider, you can do it later by adding them through your account page.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-connect-google-drive.png)Fast.io - Connect Google Drive

Fast.io needs access to your Google Drive account to work. They will create a "Fast.io" folder to contains your websites. Click on **"Connect Google Drive Now"**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-select-google-account.png)Fast.io - Select your Google account

You need to **select your Google account** to link it with Fast.io.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-allow-google-1.png)Fast.io - Allow Fast.io to access Google Drive

You need to **allow Fast.io to access your Google account** to link it correctly.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-create-account.png)Fast.io - Create your account

Your account is ready, choose a password then **click on "Create Account"**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-welcome.png)Fast.io - Welcome page

When your account is ready, a "Welcome to Fast!" page will appear. **Click on "Let's begin!"**.

### 4) Create your website
![](https://herewecode.io/blog/content/images/2020/01/fast-io-add-new-website.png)Fast.io - Dashboard

You are ready to create your website and share it with everyone! **Click on "Add New Site"**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-website-name.png)Fast.io - Choose a website name

**Choose your website name and type it** in the input box. When you finished, **click on "Next"**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-select-website-type.png)Fast.io - Choose a website type

Fast.io allows you to create three website types: File Sharing website, Web Pages, or Files Browser website.

In our case, we will **select "Web Pages"** because we want to host an HTML web page.

If later you want to create a website to share some documents, you have to go back to your dashboard, create a new one, and select File Downloads.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-select-google-drive.png)Fast.io - Choose a storage provider for your website

Once you clicked on "Web Pages", you need to select your storage provider. **Click on "Google Drive"**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-select-url.png)Fast.io - Choose your website URL

**Choose your website URL and type it** in the input box. When you finished, **click on "Create Site"**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-success.png)Fast.io - Successfully created website

You did it! Your website is online and available at the URL you chose. In my case, you can find my site on [mygoogledrivewebsite.imfast.io](https://mygoogledrivewebsite.imfast.io)


### 5) Upload your index.html

If you open your website, you may notice an error because you didn't upload your index.html file on your Google Drive.

Two ways to do it:

- **Open your Google Drive and search for Fast.io folder**, then the folder of your website (in my case, "mygoogledrivewebsite.imfast.io").
- On the step 4 success page, **click on "See your Google Drive"**.

![](https://herewecode.io/blog/content/images/2020/01/fast-io-google-drive-upload.png)Fast.io - Google Drive before upload

Once you did it, **right-click with your mouse and select "Upload files"**. A new window will open, **find your "index.html" file, and select it**.
![](https://herewecode.io/blog/content/images/2020/01/fast-io-google-drive.png)Fast.io - Google Drive after upload


Wait for a little before the change appears on your website.

### 6) Celebrate!
![](https://herewecode.io/blog/content/images/2020/01/fast-io-website-demo.png)Fast.io - Website demo

Spread the word to all your friends! Your website is only, and everyone can see it!


 🎉 [Please share it on Twitter by clicking here!](https://ctt.ac/Me7Uk) 🎉

### 7) Bonus

If you are curious and want to configure everything, you can go back to your dashboard and click on your website.

You will be able to link your website to Google Analytics (visitors statistics), change domain name by yours (for example, mywebsite.com), and a lot more!
ttps://herewecode.io/).

---

If you want more content like this, you can [follow me on Twitter](https://twitter.com/gaelgthomas/), where I tweet about web development, self-improvement, and my journey as a fullstack developer!