GithubHelp home page GithubHelp logo

netlify-functions-example's Introduction

Netlify Functions examples

Hi there! This is a playground repo to test out Netlify’s Lambda Functions. You can see a live demo of the examples at https://functions-playground.netlify.com.

If you want your own copy to play around with, the quickest way to get it up and running is clicking the Deploy to Netlify button below. It will clone this repository into your own account, and deploy the site to Netlify.

Deploy to Netlify

Table of Contents

Click to expand

Setup

To run the examples locally, here’s what you’ll need:

System Requirements:

cd into your local copy of the repository and run yarn or npm install

cd netlify-functions-example
yarn

Running the examples

yarn start

This will start the client server on http://localhost:8080, and the netlify-lambda server on http://localhost:9000.

netlify-lambda isn’t required to deploy Lambda functions to Netlify, but it offers some handy features out of the box that make it quicker to get started, like the local dev server and nice defaults for transpiling and bundling functions in production.

The client server is configured to proxy /.netlify requests to the Lambda server (see webpack.client.js). This is the same behavior the site has when it’s deployed to Netlify.

Community Function Examples

Add an example

Example Author
Bus Schedule Tracker
Tracking bus schedules
edumentab
Contentful Authless Comments
Contentful authless comments
shaunpersad
Contentful Image Saver
Save images to contentful
mirshko
Create React App Lambda
Create React App with baked in Netlify functions support
netlify
Detect Csp Violations
CSP violations reporting by setting the lambda URL as the CSP report-uri
stefanjudis
Fetch Files From Google Drive
List files from google drive API
JustinBeckwith
Form Spam Filter
Filter form spam and send to Zapier webhook
chrisjm
Get Items From Cosmicjs
List out objects from cosmicjs
aslanvaroqua
Get Weather Via Openweathermap
Get the weather via openweathermap
mattburrell
Ifttt To Flick Instagram Make New Github Post
Webhook from IFTTT when new Flickr photo with tag #blog create github file and post. Automated photo blog view the project
rretsiem
Intercom As Oauth Login
Oauth via intercom
DavidWells
Lookup Dns
DNS lookup of a site
HJGreen
Mailchimp Landing Page
Landing page with mailchimp
tobilg
Mongodb And Functions
Using mongoDB + functions view the project
maciejmatu
Netlify Functions Apollo Graphql
Deploying Apollo graphql on netlify functions view the project
stubailo
Netlify Functions As Zips
Functions as zips
DavidWells
Netlify Functions Crud App With Fauna
Using faunaDB as datastore
netlify
Netlify Functions Express
Using express with netlify functions
DavidWells
Netlify Functions Gated Sites
Gating multiple sites with Okta
DavidWells
Netlify Headless Site
Serve entire site via Netlify functions + dynamic serverside HTML rendering
rabbah
Ping Superfeedr On Deploy
Ping Superfeedr RSS, Atom, or JSON feeds on successful deploy. Uses event driven functions
anarchivist
Process Upload Send To Trello Slack Mailgun
Process form file upload and send to results to trello, slack, & mailgun
NimbusForWork
Progressive Form Enhancement Via Functions
Handle Ajax & normal form POST submissions via functions view the project
DavidWells
Proxy Blocked Google Analytics
Proxy pageviews to google analytics incase google analytics is blocked on the client side
codeniko
Proxy Tracking Data To Loggly
proxy arbitrary tracking data to a log management service Loggly
codeniko
Save Data To Google Sheets
Save emails to googlesheets
grod220
Save Twitch Clips Save To Postgres
Grab clips from twitch and insert into postgres database
stphnchoe
Scrape Twitter Avatars
Scrape mobile twitter HTML to return the URLs of a user avatar: view the project
philhawksworth
Send Custom Netlify Build Slack Notification
Custom netlify build status in slack
mirshko
Send Email Via Aws Sns
Sends a question submitted from HTML question form via AWS SES. This example connects to an external AWS account
frzng
Send Email Via Nodemailer
send email via nodemailer
kicholen
Serverless Auth Strategies
How to protected & scoped down functions to specific users
DavidWells
Serverside Hashing
Serverside hashing via crypto
SquishyCat
Stripe Payment Processing
stripe payment processing
alexmacarthur
Swambda Openapi
Integrate OpenAPI (swagger) specifications and lambda into an easy-to-use routing tier
fehguy
Tokbox Session Manager
Build live interactive video, voice and messaging into your web and mobile apps via tokbox
slap-dash
Token Hider Via Proxy
Token hider api passthrough proxy
depadiernos
Url Shortening Service
URL shortening service
philhawksworth
Verify Okta
Verify an Okta token with Go
netlify

Contributing

We are happy to accept more examples from the community

Adding an example

  1. Add your example to examples.json

Make sure to include the following fields. If there is no live demo/blog post etc, you can omit the url from the object.

{
  "name": "netlify-functions-apollo-graphql",
  "description": "Deploying Apollo graphql on netlify functions ",
  "code": "https://github.com/stubailo/apollo-netlify-lambda-app",
  "url": "https://blog.apollographql.com/deploy-a-fullstack-apollo-app-with-netlify-45a7dfd51b0b"
}
  1. Regenerate the README.md with the following command
npm run docs
  1. Open a new pull request with your example.

netlify-functions-example's People

Contributors

davidwells avatar imorente avatar swyxio avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.