Nuansa.net
tutorial 28 April 2026 10:55:00

Tutorial Lengkap Membuat Website dengan Google Apps Script (Gratis & Tanpa Hosting)

Ayu

Ayu

Editor & Kontributor

Tutorial Lengkap Membuat Website dengan Google Apps Script (Gratis & Tanpa Hosting)

Banyak orang berpikir kalau bikin website itu harus:

  • Sewa hosting
  • Beli domain
  • Setup server

Padahal… ada cara yang jauh lebih simpel.

Bikin website pakai Google Apps Script — gratis, tanpa hosting.

Di tutorial ini, saya kasih langkah real yang bisa langsung kamu praktikkan.

1. Masuk ke Google Apps Script

Buka halaman Google Apps Script:

https://script.google.com

Lalu klik New Project.

Dashboard Google Apps Script

Kamu akan masuk ke halaman editor.

2. Buat File HTML

Klik menu:

  • File → New → HTML file

Beri nama: index

Buat file HTML di GAS

Lalu isi dengan kode sederhana:

<!DOCTYPE html><html><head> <title>Website Saya</title></head><body> <h1>Halo, ini website dari Google Apps Script</h1></body></html> 

3. Edit File Code.gs

Kembali ke file Code.gs, lalu ubah jadi seperti ini:

function doGet() { return HtmlService.createHtmlOutputFromFile('index');} 
Edit file Code.gs

Fungsi ini akan menampilkan halaman HTML kamu sebagai website.

4. Deploy Jadi Web App

Klik tombol Deploy → New deployment

  • Pilih type: Web App
  • Execute as: Me
  • Who has access: Anyone
Deploy Web App GAS

Klik Deploy, lalu copy URL yang diberikan.

5. Website Sudah Jadi 🎉

Buka link hasil deploy tadi.

Dan…

Website kamu sudah online!

Bonus: Pakai Google Sheets sebagai Database

Kamu juga bisa buat website dinamis.

Caranya:

  • Buat Google Sheets
  • Akses via Apps Script
function getData() { var sheet = SpreadsheetApp.openById("ID_SHEET").getSheetByName("Sheet1"); return sheet.getDataRange().getValues();} 
Google Sheets sebagai database

Dengan ini, website kamu bisa:

  • Menyimpan data
  • Menampilkan data
  • Jadi aplikasi sederhana

Kelebihan Cara Ini

  • Gratis (tanpa hosting)
  • Mudah dibuat
  • Bisa dikembangkan jadi SaaS

Penutup

Kalau kamu selama ini mikir bikin website itu ribet…

Sebenarnya nggak selalu begitu.

Yang penting bukan alatnya, tapi bagaimana kamu memanfaatkannya.

Dan Google Apps Script ini salah satu cara paling simpel untuk mulai.

Artikel Terkait

Close Ads