All Projects → trailheadapps → functions-recipes

trailheadapps / functions-recipes

Licence: CC0-1.0 license
Functions Recipes is a library of examples to help you getting started with Salesforce Functions and get used to their main features.

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language
HTML
75241 projects
CSS
56736 projects
Apex
172 projects
typescript
32286 projects

Projects that are alternatives of or similar to functions-recipes

rvw developers core
SFCC Developers Core Cartridge. A Salesforce Commerce Cloud (Demandware) Cartridge for Developers.
Stars: ✭ 43 (-71.33%)
Mutual labels:  salesforce
C-Complete-practice
This repository will contains C programs from beginners to advance level
Stars: ✭ 59 (-60.67%)
Mutual labels:  functions
lwc-redux
Integrate Redux with Lightning Web Component
Stars: ✭ 35 (-76.67%)
Mutual labels:  salesforce
lwc-modules
Build any LWC you want without ever having to touch Apex
Stars: ✭ 20 (-86.67%)
Mutual labels:  salesforce
sequence-as-promise
Executes array of functions as sequence and returns promise
Stars: ✭ 23 (-84.67%)
Mutual labels:  functions
SFDCRules
Simple yet powerful Rule Engine for Salesforce - SFDCRules
Stars: ✭ 38 (-74.67%)
Mutual labels:  salesforce
serverless-scaleway-functions
Plugin for Serverless Framework to allow users to deploy their serverless applications on Scaleway Functions
Stars: ✭ 58 (-61.33%)
Mutual labels:  functions
go-sfdc
go-sfdc is a library used to interface to Salesforce APIs using golang
Stars: ✭ 59 (-60.67%)
Mutual labels:  salesforce
linbaser
The program on a given grid from a file builds an approximation of the function by a piecewise linear basis. Made mostly in Russian, because of university subject.
Stars: ✭ 10 (-93.33%)
Mutual labels:  functions
Lightning-Out-Demo
How to use Lightning component in node.js (External websites) by using Lightning Out. It shows how to enable CORS and SSL in Node.js with Video and complete source code.
Stars: ✭ 17 (-88.67%)
Mutual labels:  salesforce
sfdx-flowdoc-plugin
A Salesforce CLI plugin that generates design document from Lightning Flow (currently Process Builder) metadata
Stars: ✭ 56 (-62.67%)
Mutual labels:  salesforce
NetCoreForce
Salesforce REST API toolkit for .NET Standard and .NET Core
Stars: ✭ 77 (-48.67%)
Mutual labels:  salesforce
metadata-xml-tool
CLI tool for processing Salesforce Metadata XML files
Stars: ✭ 14 (-90.67%)
Mutual labels:  salesforce
one-pub-sub-lwc
One PubSub: A Declarative PubSub Library for Lightning Web Component and Aura Component
Stars: ✭ 19 (-87.33%)
Mutual labels:  salesforce
forcelog
A structured, extensible logger for Salesforce Apex
Stars: ✭ 37 (-75.33%)
Mutual labels:  salesforce
shogun
Shogun: Functions As Commands for the true samurai developer.
Stars: ✭ 23 (-84.67%)
Mutual labels:  functions
openwhisk-runtime-go
Apache OpenWhisk Runtime Go supports Apache OpenWhisk functions written in Go
Stars: ✭ 31 (-79.33%)
Mutual labels:  functions
ftrace
Simple Function calls tracer
Stars: ✭ 65 (-56.67%)
Mutual labels:  functions
codeceptjs-bdd
Javascript BDD UI Automation Framework. Exclusive LWC Shadow DOM Support. Playwright, Webdriver.io, Appium, Saucelabs.
Stars: ✭ 35 (-76.67%)
Mutual labels:  salesforce
inventory-hub-java-on-azure
Sample Inventory Hub App using Serverless and Event-driven Java - on Azure with Spring Boot, Tomcat, Functions, Event Hub and Cosmos DB
Stars: ✭ 18 (-88%)
Mutual labels:  functions

Functions Recipes

CI Workflow codecov lerna

Functions Icon

Introduction

Salesforce Functions lets you use the Salesforce Platform for building event-driven, elastically scalable apps and experiences. Salesforce Functions is designed to boost developer productivity by reducing your infrastructure responsibilities and enabling you to build and integrate Functions-as-a-Service (FaaS) apps using the languages and tools of your choice.

Functions Recipes is a library of examples to help you getting started with Salesforce Functions and get used to their main features.

To learn more about Salesforce Functions please visit the documentation center.

Getting Started

You can use Functions both locally and deployed to a Salesforce Organization, if you don't have access to a Functions Enabled Org, you can still use the examples in this repository, please refer to the Local Development section for more information.

Prerequisites

Please refer to the Install Prerequisites for detailed information about the necessary tools to start developing Salesforce Functions.

Salesforce Org Setup and Deployment

For more information about how to configure your organization for Salesforce Functions, please refer to the documentation

Prerequisite: Functions Enabled Org

  1. If you haven't already done so, authorize with your org and provide it with an alias (fnrecipesorg in the command below):
sfdx auth:web:login -d -a fnrecipesorg
  1. Clone the functions-recipes repository:
git clone https://github.com/trailheadapps/functions-recipes
cd functions-recipes
  1. Create a scratch org and provide it with an alias (functions_recipes in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a functions_recipes

Salesforce Functions Deployment

For more information about how to deploy Functions to a Compute Environment and connect it to an org, please refer to to the documentation

  1. Login to your Salesforce Functions account:
sf login functions
  1. Create a Compute Environment to deploy the functions and connected it to your org:
sf env create compute --connected-org=functions_recipes --alias=recipes_env
  1. Deploy the functions
sf deploy functions --connected-org=functions_recipes
  1. Push source app to the scratch org:
sfdx force:source:push -f
  1. Assign the FunctionsRecipes permission set to the default user:
sfdx force:user:permset:assign -n FunctionsRecipes
  1. Assign the Functions permission set to the default user:
sfdx force:user:permset:assign -n Functions
  1. Open the Functions Recipes App
sfdx force:org:open -p "/lightning/n/Functions"
  1. Activate the Functions Recipes Theme (Optional)
sfdx force:org:open -p "/lightning/setup/ThemingAndBranding/home"

Functions Recipes App

After deploying both the Salesforce app and the functions, you can open the Salesforce org and navigate to the Functions Recipes application:

From there you'll be able to explore the source code and invoke the deployed functions.

Screenshot

Local Development

Each individual function can be started and invoked locally using the Salesforce CLI, you can refer to each individual README for instructions on how to start and invoke each function locally.

For Local Development you can use any DevHub enabled org, just make sure to create the scratch org without the Functions feature enabled and avoid the Salesforce Functions Deployment steps.

Available Recipes

  1. Introduction to Functions
  2. InvocationEvent
  3. Context
  4. Logging
  5. Environment Variables
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].