# start-web-framework **Repository Path**: jiaosl/start-web-framework ## Basic Information - **Project Name**: start-web-framework - **Description**: 传统框架迁移方案,常见Web框架部署案例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2022-10-17 - **Last Updated**: 2022-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Web Framework应用案例 ![图片alt](https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1638188430695_20211129122031251935.png)

中文 | English

将一个传统框架部署到阿里云Serverless平台的方法有很多,可以选择Custom、Custom Container以及原生编程语言的运行时。这其中Custom和原生语言运行时方案,除了启动命令/入口函数不同之外,区别并不是很大,可以根据自己需求进行实现,Custom Container方案相对来说更简单,但是镜像的冷启动速度相对Custom和原生语言运行时比较慢。 目前本案例仓库收录以下常见框架的部署案例:
No. :fire:Nodejs Python PHP Go Java Others
1 :fire:Express [custom] :fire::fire:Flask [python3] Think PHP [custom] BeeGo Tomcat/Jetty Gatsby
2 Egg [custom] Tornado [custom] laravel [custom] Gin [custom] SpringBoot [custom] Hugo [custom]
3 Nextjs [custom] Bottle [python3] Discuz [custom]Quarkus
4 Nuxtjs [custom] Web.py [python3] :fire::fire::fire: WordPress [custom]
5 :fire::fire::fire: Hapi [custom] Django [python3] :fire::fire::fire: Zblog [custom]
6 Koa [custom] FastAPI [custom] Ecshop [custom]
7 Nest [nodejs12] Web2py Metinfo [custom]
8 :fire: Midway-koa [custom] Pyramid [python3] Whatsns [custom]
9 Think.js [nodejs12] Typecho [custom]
> 除了上面的案例之外,还提供了两个简单的实践应用: > - [基于Express框架的todoList应用](./example/todolist-app/src):`s init todolist-app` > - [基于Django框架的博客应用](./example/django-blog/src):`s init django-blog` > SSR 框架: > - [nuxt-ssr](./web-framework/nodejs/custom-runtime/nuxt-ssr/src): `s init start-nuxt-ssr` > 为了对比Custom运行时和编程语言原生运行时的框架迁移区别,可以参考以下案例进行自行对比: > > | 框架名 | Custom运行时 | Node.js 12运行时 | > | ----- | ----------- | ----------------| > | Egg.js | [egg](./web-framework/nodejs/custom-runtime/egg/src) | [egg-app](./web-framework/nodejs/nodejs-runtime/egg/src) | > | Express.js | [express](./web-framework/nodejs/custom-runtime/express/src) | [express-app](./web-framework/nodejs/nodejs-runtime/express/src) | > | Koa.js | [koa](./web-framework/nodejs/custom-runtime/koa/src) | [koa-app](./web-framework/nodejs/nodejs-runtime/koa/src) | > | Hapi.js | [hapi](./web-framework/nodejs/custom-runtime/hapi/src) | [hapi-app](./web-framework/nodejs/nodejs-runtime/hapi/src) |