DEV Community

Cover image for How to deploy a static website for free in only 3 minutes with Google Drive
Gaël Thomas for HereWeCode

Posted on • Updated on • Originally published at

How to deploy a static website for free in only 3 minutes with Google Drive

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


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

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 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. - How it works

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.


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 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

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 works, you are free to modify everything.

Feel free to send me a message on Twitter 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>
    <title>My Static Website</title>
    <h1>My Static Website</h1>
      Hello, I'm online, and everyone can see me!
Enter fullscreen mode Exit fullscreen mode

Index.html example

2) Open homepage homepage

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

3) Configure Google Drive - 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. - Connect Google Drive needs access to your Google Drive account to work. They will create a "" folder to contains your websites. Click on "Connect Google Drive Now". - Select your Google account

You need to select your Google account to link it with - Allow to access Google Drive

You need to allow to access your Google account to link it correctly. - Create your account

Your account is ready, choose a password then click on "Create Account". - Welcome page

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

4) Create your website - Dashboard

You are ready to create your website and share it with everyone! Click on "Add New Site". - Choose a website name

Choose your website name and type it in the input box. When you finished, click on "Next". - Choose a website type 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. - Choose a storage provider for your website

Once you clicked on "Web Pages", you need to select your storage provider. Click on "Google Drive". - Choose your website URL

Choose your website URL and type it in the input box. When you finished, click on "Create Site". - 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

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 folder, then the folder of your website (in my case, "").
  • On the step 4 success page, click on "See your Google Drive". - 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. - Google Drive after upload

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

6) Celebrate! - 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! 🎉

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,, and a lot more!

If you want more content like this, you can follow me on Twitter, where I tweet about web development, self-improvement, and my journey as a fullstack developer!

Discussion (25)

osde8info profile image
Clive Da

fabulous i think you might have just invented a whole new architecture ! have a look at is DSR the future ?

gaelgthomas profile image
Gaël Thomas Author

Thank you! I checked your post. I'm happy to see my tutorial inspired you to create something! I'm waiting to see the result of your work.

osde8info profile image
Clive Da

wow thats great motivation ! thanks ! i promise to publish SOMETHING today !

BTW i was up late yesterday publishing my node express pug 4 glitch & zeit demo so 'today' means before 2am tomorrow 😄

sqlmancerqueuellc profile image

I recently did something similar with a Google Cloud Storage bucket and a domain that I registered through Google Domains. All I needed was my Google account and some help from the Google documentation (

I'm a little conflicted when I read about stuff like On one hand it seems simple and convenient. On the other hand it feels like it adds something extra that isn't really necessary.

Anyway, I enjoyed reading the article. Thanks for sharing your knowledge and enthusiasm.

gaelgthomas profile image
Gaël Thomas Author

In my opinion, there is a lot of tools available on the web to host and deploy websites.
Every tool is "specialized" for one type of deployment. It depends on what you need and what you prefer (also it depends on the price of the solution).
For example, I think this solution is pretty good to deploy fast or for people who are not very experienced but want to put their site online.

Thank you for your feedback! Glad you like the article!

lucis profile image

Can't argue simplicity compared to Netlify. You can literally open it (logged in), drop a folder from your OS, and the site is deployed.

Of course, alternatively to configuring to run builds automatically from each push on a Git Repo.

gaelgthomas profile image
Gaël Thomas Author • Edited on

That's why I decided to share these tools. It's so simple.
I didn't make a beginner's guide for Git because I wanted to differentiate my articles from other static hosting posts (most people do a tutorial with Git).
However, as you say, it's working pretty well with Git also.

osde8info profile image
Clive Da

nice heres mine running from github osde8info

gaelgthomas profile image
Gaël Thomas Author

Congratulations! Did you discover the tool with this article?

osde8info profile image
Clive Da

yes never heard of fastio before

Thread Thread
gaelgthomas profile image
Gaël Thomas Author • Edited on

Then, I hope you enjoyed my article and the tool! Thank you for sharing your website!

manishfoodtechs profile image
manish srivastava

Nice article

gaelgthomas profile image
Gaël Thomas Author

Thank you for your feedback!

shaijut profile image
Shaiju T

Thanks, but What if I want my custom domain name point to Google drive hosting ?

gaelgthomas profile image
Gaël Thomas Author • Edited on

Hello, as I said in the article, you can go back to the dashboard and click on your website.
You will find some options in the left pane. In "Domains" you have the possibility to configure a custom domain name. Hope it helps you! - Options

devpato profile image

Have you tested firebase deployment? I like it a lot. I'm going to give yours a try for sure

gaelgthomas profile image
Gaël Thomas Author

I never tried Firebase deployment. I will give a try. Thank you for sharing this tool!

fyresite profile image

Wow, this was very through... Great article!

gaelgthomas profile image
Gaël Thomas Author

Thank you for your comment! I'm happy you liked the article. Keep coding!

anjalbinayak profile image
Anjal Binayak

Thanks, it made me easy for completing my school project

gaelgthomas profile image
Gaël Thomas Author

Perfect, I'm happy it helped you with your school project!

mayur profile image
Mayur Bhonde

Wow, this looks really interesting. Might give it a try. ✌🏾

gaelgthomas profile image
Gaël Thomas Author • Edited on

Send another comment when you tried it! I'm curious to get your opinion!

zenulabidin profile image
Ali Sherief

Question, If I have a static website, can I make it dynamic by connecting it to Firebase?

gaelgthomas profile image
Gaël Thomas Author • Edited on

I‘m not sure about it.
A static website can use javascript and, for example, JQuery.
Using Firebase looks to be able with a server-side language. In that case, you are not able to do it.
However, you can host a static website with Firebase. Maybe you can have a look and check if it’s possible to make a dynamic website.