Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CodeByteMe/awesome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

50 Commits

Repository files navigation

本仓库是Serverless Devs阿里云系列的Awesome,在这里可以查看到关于阿里云相关组件的大部分内容。除了下面正文中的详细信息,您还可能需要关注:

  1. Serverless Devs与CICD的结合
  2. 函数计算组件文档函数计算快速入门文档
  3. Serverless 应用引擎(SAE)文档Serverless 应用引擎(SAE)快速入门文档
    更多关于案例和内容,可以参考以下目录。

Hello World

HTTP函数 Event函数 Custom Runtime Custom Container
fc-http-node.js6
fc-http-node.js8
fc-http-node.js10
fc-http-node.js12
fc-http-node.js14
fc-http-php7.2
fc-http-python2.7
fc-http-python3.6
fc-http-java8
fc-event-node.js6
fc-event-node.js8
fc-event-node.js10
fc-event-node.js12
fc-event-node.js14
fc-event-php7.2
fc-event-python2.7
fc-event-python3.6
fc-event-java8
Golang example
Nodejs10 example
Nodejs12 example
PHP74-Swoole Event函数
PHP74-Swoole HTTP函数
Python37 Event函数
Python37 HTTP函数
C++ Event函数
C++ HTTP函数
Java8-SpringBoot
Ruby example
Powershell example
F# example
TypeScript example
Lua example
Dart example
Rust example
C++ Event函数
Node.js 14 Event函数
Python3.9 Event函数
C++ HTTP函数
Springboot HTTP函数
ASP.Net Core HTTP函数

Web Framework应用案例

将一个传统框架部署到阿里云Serverless平台的方法有很多,可以选择Custom、Custom Container以及原生编程语言的运行时。这其中Custom和原生语言运行时方案,除了启动命令/入口函数不同之外,区别并不是很大,可以根据自己需求进行实现,Custom Container方案相对来说更简单,但是镜像的冷启动速度相对Custom和原生语言运行时比较慢。

目前函数计算仓库收录以下常见框架的部署案例:

No. 🔥Nodejs Python PHP Go Java Others
1 🔥Express [custom] 🔥🔥Flask [python3] Think PHP [custom] BeeGo Tomcat/Jetty Gatsby
2 Egg [custom] Tornado [custom] laravel [custom] Gin SpringBoot [custom] Hugo
3 Nextjs [custom] Bottle [python3] Discuz [custom] Quarkus
4 Nuxtjs [custom] Web.py [python3] 🔥🔥🔥 WordPress [custom]
5 🔥🔥🔥 Hapi [custom] Django [python3] 🔥🔥🔥 Zblog [custom]
6 Koa [custom] FastAPI [custom] Ecshop [custom]
7 Nest [nodejs12] Web2py Metinfo [custom]
8 Connect [nodejs12] Pyramid [python3] Whatsns [custom]
9 Think.js [nodejs12] Typecho [custom]

除了上面的案例之外,还提供了两个简单的实践应用:

  • nuxt-ssr: s init start-nuxt-ssr
  • nuxt-spa: s init start-nuxt-spa
    为了对比Custom运行时和编程语言原生运行时的框架迁移区别,可以参考以下案例进行自行对比:
框架名 Custom运行时 Node.js 12运行时
Egg.js https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/egg https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/egg-app
Express.js https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/express https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/express-app
Koa.js https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/koa https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/koa-app

静态网站应用案例

当然,上面所列举的静态网站案例都是build之后部署到对象存储等,您也可以直接部署到函数计算(尽管这并不是一个值得推荐的做法),您可以参考start-static-site文档 , 也可以尝试执行命令s init start-static-site进行初始化

场景合集

AI场景

音视频处理案例

Serverless架构下数据库使用

其他

活动场景

这一部分记录的是一些活动的小案例,仅供学习使用

About

🛰️ 应用合集

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /