Skip to content

Commit

Permalink
feat: 🎸 增加midway-koa例子
Browse files Browse the repository at this point in the history
  • Loading branch information
heimanba committed Apr 9, 2022
1 parent b3d176e commit 0d60903
Show file tree
Hide file tree
Showing 163 changed files with 1,471 additions and 3,900 deletions.
17 changes: 16 additions & 1 deletion update.list
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
web-framework/nodejs/custom-runtime/hapi
web-framework/nodejs/nodejs-runtime/connect
web-framework/nodejs/nodejs-runtime/egg
web-framework/nodejs/nodejs-runtime/express
web-framework/nodejs/nodejs-runtime/hapi
web-framework/nodejs/nodejs-runtime/koa
web-framework/nodejs/nodejs-runtime/nest
web-framework/nodejs/nodejs-runtime/nuxt
web-framework/nodejs/nodejs-runtime/thinkjs

web-framework/nodejs/custom-runtime/egg
web-framework/nodejs/custom-runtime/express
web-framework/nodejs/custom-runtime/hapi
web-framework/nodejs/custom-runtime/koa
web-framework/nodejs/custom-runtime/next
web-framework/nodejs/custom-runtime/midway-koa
web-framework/nodejs/custom-runtime/nuxt-ssr
2 changes: 1 addition & 1 deletion web-framework/nodejs/custom-runtime/egg/cloudshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [部署项目](#部署项目)
- [更多信息](#更多信息)

> - [:octocat: 源代码](https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/egg/src)
> - [:octocat: 源代码](https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/custom-runtime/egg/src)
> - [:earth_africa: 效果预览](http://egg.web-framework.1583208943291465.cn-shenzhen.fc.devsapp.net/)
## 下载工具
Expand Down
2 changes: 1 addition & 1 deletion web-framework/nodejs/custom-runtime/egg/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-egg
Provider:
- 阿里云
Version: 1.2.7
Version: 1.2.8
Description: 为企业级框架和应用而生(部署到Custom运行时)
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
4 changes: 2 additions & 2 deletions web-framework/nodejs/custom-runtime/egg/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# 快速开始

- [:octocat: 源代码](https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/egg/src)
- [:octocat: 源代码](https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/custom-runtime/egg/src)
- [:earth_africa: 效果预览](http://egg.web-framework.1583208943291465.cn-shenzhen.fc.devsapp.net/)

## 通过应用中心部署
Expand All @@ -36,7 +36,7 @@
- 调用函数: 根据返回的`url`信息,在浏览器中进行请求即可

## 通过阿里云CloudShell部署
如果您不想在应用中心中快速体验,也不想下载命令行工具体验,您也可以在[ :rocket: 阿里云 CloudShell](https://api.aliyun.com/new#/tutorial?action=git_open&git_repo=https://github.com/devsapp/start-web-framework.git&tutorial=web-framework/nodejs/egg/cloudshell.md) 中快速体验。
如果您不想在应用中心中快速体验,也不想下载命令行工具体验,您也可以在[ :rocket: 阿里云 CloudShell](https://api.aliyun.com/new#/tutorial?action=git_open&git_repo=https://github.com/devsapp/start-web-framework.git&tutorial=web-framework/nodejs/custom-runtime/egg/cloudshell.md) 中快速体验。
# 应用详情
本应用仅作为学习和参考使用,您可以基于本项目进行二次开发和完善,实现自己的业务逻辑
# 关于我们
Expand Down
2 changes: 1 addition & 1 deletion web-framework/nodejs/custom-runtime/egg/readme_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Quick start

- [:octocat: source](https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/egg/src)
- [:octocat: source](https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/custom-runtime/egg/src)
- [:earth_africa: Effect Preview](http://egg.web-framework.1583208943291465.cn-shenzhen.fc.devsapp.net/)

## Deploy via command line tools
Expand Down
149 changes: 2 additions & 147 deletions web-framework/nodejs/custom-runtime/egg/src/code/app/view/home.nj
Original file line number Diff line number Diff line change
Expand Up @@ -4,160 +4,15 @@
<head>
<meta charset="UTF-8">
<title>快速部署一个 Egg 应用</title>
<style>
* {
padding: 0;
margin: 0;
font-family: arial;
}
a,
a:visited {
color: #0366d6;
text-decoration: none;
}

header {
color: #f0f0f0;
padding: 16px 16px 40px 16px;
background-image: linear-gradient(to right, #2938fd, #4190FF);
font-size: 14px;
}
header .logo {
width: 40px;
height: 40px;
}
ul, li {
font-size: 14px;
}
header .header {
display: flex;
justify-content: space-between;
text-align: center;
color: #fff;
}

header .header a {
color: #fff;
}
header img {
width: 100px;
}
h1 {
font-size: 36px;
color: #fff;
font-weight: normal;
}

code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
}

.content {
width: 1000px;
margin: auto
}

.button {
box-sizing: border-box;
display: inline-block;
height: 48px;
line-height: 48px;
min-width: 140px;
font-family: Avenir-Heavy;
color: #fff;
text-align: center;
border-radius: 4px;
text-decoration: none;
}

.button-primary {
background: #4190FF;
}

.wrap {
width: 1000px;
margin: 16px auto auto;
}

.wrap p {
margin: 16px 0;
font-size: 14px;
}

.wrap a{
color: #fff;
}

.content {
margin-top: 80px;
}

.list {
width: 800px;
}

.list .item {
position: relative;
padding-left: 70px;
margin-top: 50px;
}

.list .item .step {
position: absolute;
width: 36px;
height: 36px;
top: -3px;
left: 0;
border: 5px solid #4a6495;
border-radius: 23px;
text-align: center;
line-height: 36px;
}

.list .item h2 {
font-size: 24px;
font-weight: normal;
}

.list .item p {
line-height: 30px;
margin-top: 10px;
color: #777
}

.list .item .container {
padding: 20px 0;
font: 14px;
}

.list .item .container h3 {
font-weight: 500;
margin: 16px 0 8px 0;
}

.list .item .container pre {
color: #777;
background-color: #f0f0f0;
padding: 8px;
}

.list .item .container ul {
list-style: disc;
padding: 0 20px;
}
</style>
<link rel="stylesheet" href="https://serverless-devs-app-pkg.oss-cn-beijing.aliyuncs.com/web-framework-demo.css" />
</head>

<body>
<header>
<div class="header">
<img class="logo" src="https://img.alicdn.com/imgextra/i4/O1CN01Qg3e7H1WlGp5th8J6_!!6000000002828-2-tps-400-400.png" />
<div>
<a href="https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/egg/src" target="_blank">
<a href="https://github.com/devsapp/start-web-framework/tree/master/web-framework/nodejs/custom-runtime/custom-runtime/egg/src" target="_blank">
<svg class="w-6 h-6 text-gray-600 hover:text-gray-800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M12 2.247a10 10 0 0 0-3.162 19.487c.5.088.687-.212.687-.475c0-.237-.012-1.025-.012-1.862c-2.513.462-3.163-.613-3.363-1.175a3.636 3.636 0 0 0-1.025-1.413c-.35-.187-.85-.65-.013-.662a2.001 2.001 0 0 1 1.538 1.025a2.137 2.137 0 0 0 2.912.825a2.104 2.104 0 0 1 .638-1.338c-2.225-.25-4.55-1.112-4.55-4.937a3.892 3.892 0 0 1 1.025-2.688a3.594 3.594 0 0 1 .1-2.65s.837-.262 2.75 1.025a9.427 9.427 0 0 1 5 0c1.912-1.3 2.75-1.025 2.75-1.025a3.593 3.593 0 0 1 .1 2.65a3.869 3.869 0 0 1 1.025 2.688c0 3.837-2.338 4.687-4.563 4.937a2.368 2.368 0 0 1 .675 1.85c0 1.338-.012 2.413-.012 2.75c0 .263.187.575.687.475A10.005 10.005 0 0 0 12 2.247z" fill="#fff" /></svg>
<p>Github</p>
</a>
Expand Down
Loading

0 comments on commit 0d60903

Please sign in to comment.