View this demo site: https://example-hello-world-function.netlify.app/
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.
- About Netlify Functions
- Docs: Netlify Functions
- Accessing your function logs
- Learn serverless in the functions playground
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
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