Serverless functions made simple - Just add files
Tags: netlify, serverless, functions
Published: 2021-12-11 20:11:36

---
title: Serverless functions made simple - Just add files
published: true
description: Netlify Functions adds an entire serverless development and deployment pipeline to your project as part of your existing workflow. Just add files.
tags: Netlify, Serverless, Functions
cover_image: https://www.netlify.com/img/blog/og-serverless-simple.png 
canonical_url: https://www.netlify.app/blog/2021/12/11/serverless-functions-made-simple-just-add-files/
series: Netlify - a feature a day 2021
---


> Throughout December we'll be [highlighting a different Netlify feature each day](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless). It might just be the thing you need to unlock those creative juices, and [dust off that domain](https://www.netlify.com/blog/2021/12/01/dusty-domains-your-forgotten-domains-raise-money-for-charity/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless) you registered but never deployed! Keep an eye [on the blog](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless) and on [Twitter](https://twitter.com/netlify) for each feature!

Once upon a time, if you needed a back-end for your web project you'd have to get yourself a server. Or perhaps a virtual server. Either way, you were in for some configuration and maintenance. Maintenance which would last forever.

These days we can use serverless functions to provide back-end services for our projects. And so, with a little JavaScript, we can deliver a full stack of capabilities without having to learn the entire spectrum of skills necessary to truly be a full-stack developer. (From browser APIs to OS security patches, via DBA skills, tap dancing, and everything in between)

But building, deploying, and versioning serverless functions can be tricky, right? No, not these days. We got you!

Netlify Functions adds an entire serverless development and deployment pipeline to your project as part of your existing workflow. 

## How to add serverless functions to your project

All you need to do is add a file containing your functions to a `netlify/functions` folder in your project directory, and push them to your project repo. That's it.

When you do that, your functions (and any dependencies) will be packaged up, deployed to AWS Lambda, and all of their configuration will be taken care of, resulting in serverless functions with URLs relative to your project's root. No need for an AWS account. No need to leave your code.

Done.

## Accessing your functions

How you name your function files determines the URL that they get.

By default, a file called `random-joke.js` will be served up at the URL `https://your-project.domain/.netlify/functions/random-joke`

But you can configure this in order to have complete control over your URL design.

Deploying updates and rolling back to previous versions of your serverless functions happens just the same as with the rest of your code. They are part of the same codebase and benefit from all of the same workflow tools as the rest of your site.

## Try it

![Screenshot of an example, "hello world" site](https://www.netlify.com/img/blog/screenshot-hello-functions-3-.jpg "Screenshot: Hello world functions")

Here's a [simple example site](https://example-hello-world-function.netlify.app/) to explore. You can make a copy and deploy it to Netlify with just a couple of clicks. Try it out by clicking the Deploy to Netlify button below.

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/example-hello-world-functions&utm_medium=social&utm_source=github&utm_campaign=devex-ph&utm_content=devex-examples)

## More information

* [About Netlify Functions](https://www.netlify.com/products/functions/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless)
* [Docs: Netlify Functions](https://docs.netlify.com/functions/overview/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless)
* [Accessing your function logs](https://docs.netlify.com/functions/logs/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless)
* [Learn serverless in the functions playground](https://functions.netlify.com/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=simple-serverless)