loading...
Cover image for Show your Website Idea to a Friend with Google Drive Host

Show your Website Idea to a Friend with Google Drive Host

monicafidalgo profile image 🦊 Atomic Fox ・2 min read

Header Image Credits: Marianne Harrison

Do you have an idea that you want to share the result right away with a friend without having to create a repository on github? You can use Google Drive to do that.

This only works for static and very basic projects but it´s very handy sometimes! In this article I will show you how!

For this, you should already have a project, with an index.html file. The index.html file is the one that will be served when someone wants to access your website.

1) In your Google drive, drop the website folder in the root or click "New" and add the folder

How to add new file in google drive

2) Then right click on the folder and click the "Share" option

3) In this popup click on the "Advanced" link

4) In the "Who has access" click change and change to "Public on the web - Anyone on the Internet can find and view"

Host A Website On Google Drive

5) Now, open a new tab in your browser and type drv.tw

6) Select Google Drive

7) Sign in with the email associated with the Google Drive account where you uploaded your website files

DriveToWeb

8) Click allow

9) Click on the link in your admin

Drive to Web Admin

10) Now share your website with your friends!

Website hosted Google Drive

The example in this picture is from the js course JavaScript 30 by Wes Bos, that I recommend you to take a look!

You can check my example here 🦄

Posted on by:

monicafidalgo profile

🦊 Atomic Fox

@monicafidalgo

I’m Mónica, a Front end developer graduated in marine biology. We are always on time to reinvent ourselves.

Discussion

pic
Editor guide
 

But why would you do it? In the age of free Github pages, Gitlab pages, and most importantly, Netlify with their generous free tier, why would some use Google Drive to host the site?

 

Hi Talha! Yes you are right. The idea was more to newbies or for someone that just have an idea and don´t want to create a code repository for that, sometimes it's handy. Of course is not a good option to show more important or complex projects. :)
Didn´t know about Netlify, going to check that! Thank you

 
 

Lol 😂👌🏼

 

In the same vein / idea / train of thoughts, i would recommend Fast.io! It's fast, cloudbased, CDNed (Cloudflare), and also works with Dropbox and Onedrive too, oh and it's free up to 100GB bandwith 😉.
(I'm not affiliated with fast.io in any way, i just enjoy their service & simplicity of it)

 

I am wondering what is Google Policy on that. They use to ban/block downloads if resource has too many views/downloads.

 

Google Drive has a max bandwidth limit per day, currently it sits at 750GB. I store about 77TB worth of data and access only about 100GB a day. As for a per file limitation I don't know of any, but I might submit a ticket to their support to ask.

I'm also wondering if putting the site behind Cloudflare(love it or hate it) might help with saving some bandwidth.

I might give this a try and report back with anything interesting.

 

That makes sense! Sure, If you would like to then it would be useful information :).