Skip to content

digitalocean/sample-functions-nodejs-helloworld

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Sample Function: Node.js "Hello World"

Introduction

This repository contains a sample function written in Node.js JavaScript. You can deploy it on DigitalOcean's App Platform as a Serverless Function component.

Note: This feature is currently in a limited beta release. Following these steps may result in charges for the use of DigitalOcean services.

Requirements

Deploying the Function

During the beta, documentation for Serverless Functions will be available to beta participants only in the Serverless Functions Closed Beta Google Doc. Please refer to this document for instructions on how to deploy Serverless Functions in App Platform.

Using the Function

Accessing the function with the ?name= query parameter will greet the specified name. For example, ?name=Alice will return Hello Alice. Using no query parameters will return Hello stranger.

Learn More

You can learn more about App Platform and how to manage and update your application in the official App Platform Documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published