Backbench Docs
  • Introduction
  • Getting Started
    • BBLANG
    • Node
    • Python
    • Go
  • Backbench Features and UI workflow
  • API Reference
    • BBLANG
    • Node
    • Python
    • Go
  • 3rd Party Integrations
    • Login using Facebook
    • Login using Google
    • Login with Twitter
    • Login using LinkedIn
    • Connection with MongoDB
    • Connection with MySQL
    • Geo Location Integration
    • Integration with AWS S3
    • Integration with Google Cloud Storage
    • Integration with Razorpay
    • Integration with Stripe
    • Integration with Mailchimp
    • Integration with Segment
    • Sending Emails with SendGrid
    • Sending Emails with Mailgun
    • Sending SMS with Twilio
    • Sending Push Notification with Pushwoosh
  • Troubleshooting and support
    • CNAME Support
    • FAQS
    • Error Codes
  • Testing
Powered by GitBook
On this page
  • Overview
  • Example
  1. Getting Started

BBLANG

Overview

Backbench currently supports BBLANG v1.0.0.

As backench is a FAAS with integrated APIGATEWAY. BBLANG functions (public ones) can be mapped directly with API endpoints.

Functions can be of two types - Public, Private. Difference exist here that public are accessible to APIs while other is not.

//For public function `foo:bar` accesible to backbench endpoints 
//and other functions
PUBLIC_FUNCTION_NAME:FUNCTION_NAME()->{
    //do things here
}

//For private function `bar`, accesible to other functions only
FUNCTION_NAME()->{
    //do things here
}

Standard libaries shipped with BBLANG https://bblang.org/stdlib.html.

To learn more about BBLANG visit https://bblang.org/.

Example

Create a module on backbench and paste the code.

hello:world()->{
    "Halo by JLO"
}

Now, go to endpoints section, click on plus button - choose relative URI for API and then in dropdown select hello:world.

Open curl and browser, hit on the the API. You will see a "Halo".

PreviousGetting StartedNextNode

Last updated 6 years ago