Getting Started with Functions

Validated on 9 Aug 2023 • Last edited on 17 Apr 2025

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to a production namespace or App Platform — no servers required.

Functions Quickstart

Just the essentials to go from zero to working in a few minutes.

Sample Functions

Use our example repositories with sample projects and functions to get started quickly with DigitalOcean Functions.

Create a Jamstack Site Using Serverless Functions

Create a simple Jamstack (JavaScript, APIs, Markup) site using serverless functions that replace traditional backend API CRUD functionality. This tutorial series deploys a Jamstack site using App Platform’s functions components and a DigitalOcean Managed MongoDB Database.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.