Published: 2024-05-20 Last Update: 2024-05-20

Create your own website (business system) using Google Sheets

In Google Sheets, create a sheet with name products. products sheet

Put some data with the following column names. You can put any data you want but ensure to have these exact columns.

idskunamedescriptionquantityprice
1sku001product 1product 1 description11.01
2sku002product 2product 2 description22.02

Example: example sheet

Click Extensions > Apps Script. extensions apps script

You will see a screen like this. This is a Code.gs file where we can put Apps Script codes. apps script code.gs file

Go to this Github link. You will see a Code.gs file there. Copy the codes in that file and replace everything in your Code.gs.

Your Code.gs file will now look something like this. apps script new code.gs file

There’s one more file you need to copy. Create an index.html file. create html file

Name it index. index file name

You now have a new index.html file. index file name

Back to the same Github link. Copy the code in index.html file and paste it in the index.html file you’ve created. Take note to replace the existing code.

On the upper right, click Deploy > New deployment. deploy

On the pop-up window, click the gear icon, then select Web app. new deployment

Enter any Description you like then click Deploy. deploy

Wait for the deployment to finish, then click Authorize access. authorize access

Login to your Google account. Take note that the title of your Apps Script project will show here. google account login

Click Advanced. advanced

Click Go to <project-name> (unsafe). unsafe link

Take note that the above is fine even if it says not verified or unsafe. It’s your apps script, so it’s fine.

Read the permissions that you will allow (might not be the same as the screenshot) before proceeding. Then click Allow. allow

If you encounter any error, just try to deploy again.

When successful, you’d get your URL. Click it to open your new web app. new deployment url

If all is well, congratulations! You made a web app using google sheets and google apps script. new web app