Go to sheets.google.com, create a new blank spreadsheet, and name it Anchorline CRM. Leave it completely empty.
Step 2 — Open Apps Script
In your sheet click Extensions → Apps Script. Delete all existing code, paste the code below, then press Ctrl+S to save.
var SHEET = 'Sheet1';
function doGet(e) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sh = ss.getSheets()[0];
var raw = sh.getRange('A1').getValue();
return ContentService.createTextOutput(raw || '[]')
.setMimeType(ContentService.MimeType.JSON);
}
function doPost(e) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sh = ss.getSheets()[0];
sh.getRange('A1').setValue(e.postData.contents);
return ContentService.createTextOutput('{"ok":true}')
.setMimeType(ContentService.MimeType.JSON);
}
Step 3 — Deploy as Web App
Click Deploy (top right) → New deployment
Click the ⚙ gear icon next to "Select type" → choose Web app
Set Execute as:Me
Set Who has access:Anyone
Click Deploy → Authorize access → choose your Google account → Allow
Copy the Web app URL that appears (starts with script.google.com/macros/s/…)