(have)Fun with Serverless
Fun is a development tool for serverless applications. It can help you to efficiently arrange cloud resources such as Function Compute, API Gateway, Log Service and so on. You can use it to develop,build and deploy FC by describing relative resources in a template.yml
file.
If you want to use the old syntax, please refer to README.md.
As a command-line tool, Fun has built-in subcommands such as config, local, deploy, and so on.
The config subcommand can be used to configure fun, the local subcommand can be used to run the debugging function locally, and the deploy subcommand can publish your resources.
We have prepared a series of tutorials to help you use the Fun tool more easily:
- Installation: Learn how to install Fun on Mac, Linux or Windows.
- Getting Started: The basic usage of Fun is introduced with a simple example.
- Specification: Introduces the syntax of the fun's template.yml file.
- Series articles:
- Grammar Validation:Fun provides a powerful grammar validation function, and allows users to easily correct it by accurately reporting error information.
- 开发函数计算的正确姿势 —— Fun validate 语法校验排错指南:Introduced how to modify the error grammar description in template.yml according to the error information.
- Custom templates: Articles on how to quickly build a project using
fun init
.- 开发函数计算的正确姿势 —— 使用 Fun Init 初始化项目: Introduced the basic usage of
fun init
. - Fun Init 自定义模板: Introduce how to develop a
fun init
template. - Third-party templates: Third-party templates that can be quickly initialized directly by
fun init [repo]
.- puppeteer 模板项目: Screenshot service based on puppeteer deployment on
Function Compute
service. - 函数计算 R 语言模板项目:Template project for R language, can be used directly.
- 开发函数计算的正确姿势——支持 ES6 语法和 webpack 压缩:Help quickly build a Function-Compute of nodejs project skeleton, support es6 code compiled into es5.
- 函数计算实现 oss 上传较小 zip 压缩文件的自动解压:Help quickly build a Function-Compute project to unzip oss files using simple method
- 函数计算实现 oss 上传较大 zip 压缩文件的自动解压:Help quickly build a Function-Compute project to unzip oss files using streaming method
- 函数计算 TensorFlow CharRNN 五言绝句古诗模板:Template project for writing Five-Character Verse using TensorFlow CharRNN.
- 函数计算 selenium chrome java 模板项目:Java template for selenium chrome compressed by brotli.
- 函数计算 couchbase 模板项目:Template project for installing and configuring couchbase on function compute.
- express 项目接入函数计算:Help quickly build a express project of Function-Compute.
- nextjs 应用接入到函数计算:Help quickly build a next.js project of Function-Compute.
- es6 代码编译成 es5 项目模板:Help quickly build a webpack project of Function-Compute in order to compile es6 to es5.
- Serverless 微服务实践-移动应用包分发服务:Help quickly build a package distribution project based on serverless architecture of Function-Compute.
- puppeteer 模板项目: Screenshot service based on puppeteer deployment on
- 开发函数计算的正确姿势 —— 使用 Fun Init 初始化项目: Introduced the basic usage of
- Dependences installation: Articles on how to use fun install to quickly install dependencies.
- 开发函数计算的正确姿势 —— 安装第三方依赖: introduce the basic usage of fun install.
- 函数运行环境系统动态链接库版本太低?函数计算 fun 神助力分忧解难: Introduce how to use fun install to upgrade the system Dynamic-link libraries.
- How fun install works: Recommended ways for dependences installation before
fun install
was introduced. It is now recommended to usefun install
first. The following article can be used to understand the principle offun install
in order to use fun install better.- Installing a Dependency Library for Function Compute:Summarized the methods of each language dependent installation.
- Using Python to Connect Function Compute to SQL Server: Introduce how to use the fc-docker to install the pymssql library. The idea introduced in this article is similar to the underlying implementation of fun install.
- 手把手教您将 libreoffice 移植到函数计算平台: Introduce how to use Fc-docker to deploy libreoffice to Function compute.
- Running and debugging locally: A series on how to run locally, debug functions, and tips on troubleshooting related issues.
- Guidelines for Function Compute Development - Use Fun Local for Local Running and Debugging: introduce the basic usage of Fun Local.
- 开发函数计算的正确姿势 —— Http Trigger 本地运行调试: Demonstrates how to run and debug Http Trigger functions locally.
- 开发函数计算的正确姿势 —— 本地运行、调试、发布 NAS 函数: Demonstrates how to run and debug functions configured with NAS services locally.
- 开发函数计算的正确姿势 —— Api 本地运行调试: Demonstrates how to run and debug functions locally through the API.
- Deploy: Articles on how to quickly deploy Function Compute.
- 开发函数计算的正确姿势 —— 部署 API 网关: Introduce how to deploy the API Gateway + Function Compute application.
- Guidelines for Function Compute Development —— OSS Trigger: Introduce how to deploy the OSS Trigger + Function Compute application.
- 开发函数计算的正确姿势 —— CDN 触发器:Introduce how to deploy the OSS Trigger + Function Compute application.
- Fun in action:
- Guidelines for Function Compute Development - Crawler: How to use the Fun tool to develop a Serverless application from scratch.
- Guidelines for Function Compute Development - Troubleshoot Timeout Issues: Demonstrates how to solve a series of bugs and introduces the tricks of debug.
- 一元建站-基于函数计算 + wordpress 构建 serverless 网站: Demonstrates how to develop and debug a WordPress web application locally.
- 五分钟教你如何用函数计算部署钉钉群发机器人:Introduce how to use the Function Compute to quickly build a DingTalk robot.
- 五分钟上线——函数计算 Word 转 PDF 云服务: :Introduce how to migrate ibreoffice to Function Compute in order to convert word to pdf.
- 用函数计算搭建微服务——云客服访客名片: Introduce how to use the Function Compute to build a micro service of visitor card.
- Serverless 实战 —— 快速开发一个分布式 Puppeteer 网页截图服务: Introduce how to use Function Compute to quickly develop web page screenshot service.
- 函数计算部署机器学习遇到的问题和解法:Some problems that may be encountered when machine learning is deployed to Function Compute and some solutions to related problems.
- Grammar Validation:Fun provides a powerful grammar validation function, and allows users to easily correct it by accurately reporting error information.
- FAQ: Frequently asked questions and answers when using fun.
- More Examples
- 以函数计算作为 API 网关后端服务
- 函数计算
- API Gateway
- Fun 发布 2.0 新版本啦
- 函数计算工具链新成员 —— Fun Local 发布啦
- 三十分钟快速搭建 serverless 网盘服务
- Fc Docker
The MIT License