Goodbye PHP & Mailchimp: Build a simple Email List with Airtable and Lambda

In this article you’ll learn…

  • … how Airtable’s REST API makes it the perfect database for small projects.
  • … how to write a simple AWS Lambda function in Python and how to deploy it.
  • … how to integrate it into a static HTML page with a bit of Javascript.
Build an email list for your startup with AWS Lambda and Airtable. Credit: sebdeck

Airtable: An easy-to-use database

Using Airtable as our database allows us to easily view and share the email addresses of potential customers.

AWS Lambda: The Python script

handler.py — Copy the code from here: https://carbon.now.sh/PM2J6xrPf0mOChag7Xxp

serverless: Let’s deploy the function!

requirements.txt — Copy the code from here: https://carbon.now.sh/W5BPvwg00oNlzexWV5Ld
serverless.yml — Copy the code from here: https://carbon.now.sh/apEwSIP2BnVAtarNDrpU
Screenshot of my AWS Lambda deployment using the serverless tool.
curl request — Copy the code from here: https://carbon.now.sh/kinSRsqkVxpDk38tftNC

Integration into the Landing Page

Excerpt from the HTML page — Copy the code from here: https://carbon.now.sh/JQmRaMBmwG7VYuazPhu9
Excerpt from the JS code — Copy the code from here: https://carbon.now.sh/nIQulsBOcrE3kmCSQ2Bb

Wrapping up

Language technology enthusiast & NLP consultant. Currently building textcloud.co, the first workflow automation platform with text intelligence.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

OCI — Local Peering between two Tenants in the same region — Part IV

Memory Leaks in details in Android

🎁 My journey of building and launching my first product: MyFriendsLoveGifts.com

Seahorse+

Placing Boundaries for Your Player

A Complete Starter System for New Traders

Buy vs. Build in GTM Data Automation

Bar Graph showing higher cost of Building Workflow Automations v Buying Workflow Automation

Java Advanced Concurrency

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Johannes Gontrum

Johannes Gontrum

Language technology enthusiast & NLP consultant. Currently building textcloud.co, the first workflow automation platform with text intelligence.

More from Medium

How to build the static blog with Content layer, markdown, and nextjs?

Create a static blog with a Content layer, markdown, and next.

How to use custom domains? Shopify Hydrogen + Cloudflare Workers

No more NextJS blackbox. View debug info with VS Code JS Debugger

How to Deploy Next.js on Multiple Servers