# serverless-functions-nodejs **Repository Path**: mirrors_ibm/serverless-functions-nodejs ## Basic Information - **Project Name**: serverless-functions-nodejs - **Description**: Serverless Node.js app for IBM Cloud Functions - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# Create a serverless Node.js application > We have similar applications available for [Swift](https://github.com/IBM/serverless-functions-swift) and [Python](https://github.com/IBM/serverless-functions-python). This repository has code to create a serverless Backend for Frontend (BFF) using Node.js and IBM Cloud Functions to communicate with a NoSQL database. Cloud Functions supplies basic Create, Read, Update, and Delete operations in a serverless environment. These functions can be mapped to an API gateway, then integrated into an iOS app for example, to enable persistence of data into a Cloudant NoSQL Database. Cloudant NoSQL DB provides access to a fully managed NoSQL JSON data layer that's always-on. This service is compatible with CouchDB, and accessible through a simple to use HTTP interface for mobile and web application models. ## Included Components * [Cloudant NoSQL DB](https://cloud.ibm.com/catalog/services/cloudant): A fully managed data layer designed for modern web and mobile applications that leverages a flexible JSON schema. * [Continuous Delivery](https://cloud.ibm.com/catalog/services/continuous-delivery): Enable tool integrations that support your development, deployment, and operation tasks. * [GitLab](https://about.gitlab.com/): GitLab unifies issues, code review, CI, and CD into a single UI. ## Featured Technologies * [IBM Cloud Functions](https://cloud.ibm.com/openwhisk): An event-action platform that allows you to execute code in response to an event. * [Node](https://nodejs.org/en/): An open-source JavaScript run-time environment for executing server-side JavaScript code. ## Steps While you can use the individual actions locally, this collection of endpoints is meant to be deployed to IBM Cloud Functions. You can [deploy this application to IBM Cloud](https://cloud.ibm.com/developer/appservice/create-app?starterKit=6b42c419-1d3c-38a5-ba38-14c0ed097a16) or [deploy it manually](#deploying-manually) by cloning this repo first. You can then review the [Actions](https://cloud.ibm.com/openwhisk/actions) in the IBM Cloud Console interface, along with your [Cloud Functions APIs](https://cloud.ibm.com/openwhisk/apimanagement).Method | HTTP request | Description |
---|---|---|
Create | POST /database | Inserts an object |
Read | GET /database/objectId | Retrieves an object |
ReadAll | GET /database | Retrieves all objects |
Delete | DELETE /database/objectId | Deletes an object |
DeleteAll | DELETE /database | Deletes all objects |
update | PUT /database/objectId | Updates content of an object |