Top "Koa" questions

Koa is a web framework which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs.

docker-compose: nodejs + mysql can't connect mysql

I try to dockerlized my own node application, but can't connect the mysql container. my codes: docker-compose.yml version: '3.2…

mysql node.js docker koa
How to redirect some URL conditionally in the koa 2

This is what i'm thinking, pseudo code. const myRedirect = (routePath) => { newUrl = routePath; if (matches condition) newUrl = do_some_modification(…

koa koa2
Koa / Co / Bluebird or Q / Generators / Promises / Thunks interplay? (Node.js)

I'm investigating building a web app in part with Koa, but I don't quite have a handle on the hows, …

node.js generator promise bluebird koa
What are the differences between Koa and Express 4.0?

Koa and Express 4.0 are both fairly new, and from what I've read, Koa was made by the Express team. From …

node.js express frameworks koa
Handling JWT expiration and JWT payload update

I have a Koa based Node.js backend for my personal/hobby application. I implemented session handling with JWT tokens. …

javascript node.js jwt koa
How to handle a 404 in Koa 2?

I have a 404.jade file that I want to render whenever there is an invalid GET request. Here is my …

javascript node.js http-status-code-404 koa koa-router
Get client IP in Koa.js

I have a Koa app with a handler like this: router.get('/admin.html', function *(next) { const clientIP = "?"; this.…

javascript node.js koa
how to allow Access-Control-Allow-Origin with koa

I'm new to Koa and i encountered a problem that I didnt get when i used epxress. here is my …

node.js koa
Can I have koa-static serve assets at a custom (e.g., /static/) path?

The docs at https://github.com/koajs/static and my personal experience trying out koa-static lead me to believe that …

node.js static-files koa
Typescript extend third-party declaration files

How can I extend third-party declaration files? for example, I want to extend Context from @types/koa and add an …

javascript typescript koa