-
### The future of Strapi - IMPORTANT
As you have probably seen in this **article**: **http://strapi.io/blog/the-future-of-strapi**, Strapi is about to **change a lot**.
**That’s why you need, more …
-
```
var koa= require('koa');
var app = new koa();
var hostname = '127.0.0.1';
var port = 3000;
app.use(function*(){
yield asyncFunction1(params);
yield asyncFunction2(params);
yiel…
ScGPS updated
5 years ago
-
系统: win10 node.js版本:v8.x.x
安装完koa-generator之后,无法创建项目,提示koa2:command not found,尝试重置过系统环境变量也没用,我应该如何排错?
-
I understand that when I set `this.body` and all middleware finished executing the response is sent.
What I want is to send the response at some point and then execute some remaining actions.
Simply…
-
-
## What are you doing?
```
There is an associations
User.belongsToMany(Community, { as: 'Communitys', through: communityUser })
Community.belongsToMany(User, { through: communityUs…
-
### 现象
按照官网,跑了一下example中的例子,但是实际用express 和 koa 的项目必然不是像example中那样的一个 xxx.js ,通常nodejs项目大家应该都习惯用脚手架搭好,再开始码业务代码。但是实际使用过程中tsw接入express 和 koa 脚手架生成的项目的时候,一直返回 `not found`
![nbwn8yvtka z n p40fy6sg](ht…
-
I have updated sources and can't compile server anymore :/
It worked earlier.
I'm using single board computer with Debian Stretch armhf (omv edition).
sephirot@Kamyk:~$ git clone https://github.…
-
Currently Gekko launches in the browser.
I'm interested to know if folk would be interested in having gekko launch as a standalone native app?
If so I should be able to set aside some time to work…
-
## 背景
现在 controller 的使用方式和中间件是一样的,只是是洋葱圈的核心,不需要调用 next。
```js
// app/controller/home.js
module.exports = function* () {
this.body = 'done';
}
```
当升级到 koa2,使用 async/await 又会又一些变化。 gene…