Netlify examples

Hello world functions

View this demo site: https://example-hello-world-function.netlify.app/

Netlify Status

About this example site

This site shows a very simple "Hello World" example of developing and running serverless functions with Netlify Functions. It includes links to a deployed serverless function and an example of accessing the function using a customized URL.

Speedily deploy your own version

Deploy your own version of this example site, by clicking the Deploy to Netlify Button below. This will automatically:

  • Clone a copy of this repo to your own GitHub account
  • Create a new project in your Netlify account, linked to your new repo
  • Create an automated deployment pipeline to watch for changes on your repo
  • Build and deploy your new site

Deploy to Netlify

Install and run this example locally

You can clone this example repo to explore its features and implementation, and to run it locally.

# 1. Clone the repository to your local development environment
git clone git@github.com:netlify/example-hello-world-functions.git

# 2. Move into the project directory
cd example-hello-world-functions

# 3. Install the Netlify CLI to let you locally serve your site using Netlify's features
npm install -g netlify-cli

# 4. Serve your site using Netlify Dev to get local serverless functions
netlify dev