Funcraft is a deployment tool for serverless applications. It can help you manage the resources of services such as Function Compute, API Gateway, and Log Service. You can use Funcraft to develop, build, and deploy applications by defining resources in the template.yml resource configuration file. This topic lists the documentations and tutorials that describe the major features of Funcraft.
You can use the syntax of the earlier version. For more information, see (have)Fun with Serverless.
Overview
As a command-line tool, Funcraft provides various built-in subcommands, such as fun config
, fun local
, and fun deploy
. You can get started with Funcraft by reading the following topics:
Installation: describes how to install Funcraft in macOS, Linux, and Windows.
Getting started: describes how to use Funcraft by providing a simple example.
Serverless Application Model: describes the specifications and basic features of Funcraft.
Funcraft allows you to perform the following operations:
Configure Funcraft: describes how to configure Funcraft.
Run the fun init command to initialize an application: shows you how to run the
fun init
command and use the specified system template to create an application with efficiency and experience and develop business. This topic also describes how to customize a template.Run the fun local command to debug functions on premises: shows you how to run the
fun local
command to simulate functions in Function Compute on premises and perform step-by-step debugging. These features enable Function Compute to eliminate the disadvantages in development compared with traditional applications and provide a new troubleshooting method.Run the fun install command to install third-party dependencies: shows you how to run the
fun install
command to install dependent pip or apt packages by compiling code or using a Funfile file.Run the fun build command to build a code package: shows you how to run the
fun build
command to build a code package for delivery based on the source code.Run the fun nas command to manage NAS files: shows you how to run the
fun nas
command to manage Apsara File Storage NAS files and upload on-premises NAS files.Run the fun deploy command to deploy an application: shows you how to run the
fun deploy
command to deploy an application.
Related tutorials:
Deployment: For more information about how to integrate Function Compute with other Alibaba Cloud services, see the following tutorials:
Guidelines for Function Compute Development -- Deploy an API Gateway: shows you how to use Funcraft to deploy an API gateway and functions in Function Compute.
Guidelines for Function Compute Development -- OSS Trigger: shows you how to use Funcraft to deploy an Object Storage Service (OSS) trigger to invoke functions in Function Compute.
Connect Function Compute and CDN with the CDN Trigger and Fun: shows you how to use Funcraft to deploy a CDN event trigger to invoke functions in Function Compute.
Practices: Function Compute provides various subcommands, such as
fun init
,fun local
,fun install
, andfun deploy
. For more information about how to use these subcommands to develop a serverless application with efficiency, see the following tutorials:Guidelines for Function Compute Development - Crawler: shows you how to use Funcraft to develop a serverless application.
Guidelines for Function Compute Development - Troubleshoot Timeout Issues: shows you how to use Funcraft to troubleshoot different types of issues.
How to Develop Function Compute with WordPress Applications: shows you how to use Funcraft to develop a web WordPress application on premises.
Guidelines for Function Compute Development - Develop an Application to Manage NAS Files: shows you how to run the
fun local
command to develop a web application to manage Apsara File Storage NAS files.Develop Function Compute with a Web Page Snipping Service: shows you how to use Function Compute to develop a snapshot capture service for web pages with efficiency.
Use Function Compute to Deploy a DingTalk Chatbot: shows you how to use Function Compute to deploy a DingTalk chatbot to send messages to multiple groups with efficiency.
Launching a Word-to-PDF Cloud Service on Function Compute: shows you how to deploy a Word-to-PDF cloud service with efficiency based on the fc-libreoffice project.
Deploy Microservices with Function Compute: Visitor Card of Cloud Customer Service: shows you how to use Function Compute to develop a microservice that allows you to manage the visitor cards of cloud customer services.
Use Puppeteer in Function Compute: shows you how to use Puppeteer in Function Compute to develop elastic services with efficiency.
Migrate an On-premises Machine Learning Application to Function Compute: shows you how to develop a machine learning application on premises and migrate the application to Function Compute.
Custom templates: You can run the
fun init
command to develop a project based on a custom template. For more information, see the following tutorials:Third-party templates: You can run the
fun init
command to initialize a project with efficiency based on a third-party template. For more information, see the following tutorials:Puppeteer-based project template: describes how to deploy a snapshot capture service in Function Compute based on Puppeteer.
R-based project template: shows you how to use the R-based project template to run R commands in Function Compute.
Guidelines for Function Compute Development - Integration with ES6 and Webpack Compression: shows you how to develop a project framework in Node.js for Function Compute with efficiency and compile ECMAScript 6 (ES6) code into ES5 code.
Use Function Compute to automatically decompress small-sized OSS ZIP packages: shows you how to develop a template-based Function Compute project to automatically decompress the small-sized ZIP packages that are uploaded to OSS.
Use Function Compute to automatically decompress large-sized OSS ZIP packages: shows you how to develop a template-based Function Compute project to automatically decompress the large-sized ZIP packages that are uploaded to OSS.
Use Function Compute with TensorFlow for CharRNN training to generate five-character-quatrains: shows you how to develop a character recurrent neural network (CharRNN) training model that automatically generates five-character-quatrains by using TensorFlow and deploy the model to Function Compute.
Selenium project for Chrome in Java in Function Compute: shows you how to use Brotli, which features a high compression ratio, to compress the Selenium project for Chrome in Java in Function Compute.
Couchbase-based project template: shows you how to install and configure Couchbase in the Node.js 8 runtime in Function Compute by using a project template.
Integrate Express with Function Compute: describes how to integrate an Express project with Function Compute.
Integrate Next.js with Function Compute: describes how to integrate a Next.js application with Function Compute.
Project template for the conversion from ES6 to ES5: shows you how to use Webpack to compile ES6 code into ES5 code, compress the code into a .js file, and then upload the .js file to Function Compute for code execution.
Dependency installation: You can run the
fun install
command to install dependencies in Function Compute. For more information, see the following tutorials:Develop Function Compute by Installing Third-Party Dependencies
Run the fun install Command to Update a System Dynamic-link Library: shows you how to run the
fun install
command to update a system dynamic-link library.For more information about the commands that are related to installation, see the following tutorials:
Install Dependencies in Function Compute: describes how to install dependencies in different programming languages.
Connect Function Compute to SQL Server by Using Python: shows you how to use the Function Compute docker to install the pymssql module. This method is similar to the underlying implementation of the
fun install
command.How to Migrate LibreOffice to Function Compute: shows you how to use the Function Compute docker to deploy LibreOffice to Function Compute.
On-premises function invocation and debugging: You can run the
fun local
command to invoke and debug functions on premises. For more information about these operations and how to troubleshoot issues, see the following tutorials:Run and Debug HTTP Trigger Configured Functions Locally: shows you how to run the
fun local
command to invoke and step through functions by using HTTP triggers on premises.Run, Debug, and Release NAS Configured Functions Locally: shows you how to run the
fun local
command to invoke and step through functions that are used to configure Apsara File Storage NAS on premises.Run and Debug Functions locally through the API: shows you how to run the
fun local
command to invoke and step through functions on premises by calling API operations.
Syntax verification: Funcraft provides the strong syntax verification feature to allow you to rectify commands with efficiency based on the reported issues.
Guidelines for Function Compute Development -- Run the fun validate Command to Perform Syntax Verification: describes how to troubleshoot the syntax issues in the template.yml file based on the reports.
Feedback
If you encounter problems when you use Funcraft, give feedback on this page.
References
Open source license
The MIT License