Comments (7)
Yes, that would be most useful. The wiki list has way too many items and no way to meaningfully add one, I'd like to just have a set of recommended (conservative) middleware without having to investigate them all individually.
Having gone through some of the projects on the wiki list, some are abandoned, some feel abandoned, some personal projects, some are unclear on the Koa 2 support etc. Koa 2 is a breath of fresh air with regards to the basic API, but it'd be nice with a pointer to some 'this goes great with' batteries.
from discussions.
There's https://github.com/koajs/koa/wiki
from discussions.
Yeah, there's no mention of a router, but it does have a section with links that includes the wiki:
and the main app.use
section on the website also has a link to the middleware part of the wiki:
from discussions.
See, my problem was not that it is not documented, but that is a quite necessary thing to do anything usable and it was pretty hard to find. I like the modularity approach, but it would help a lot to have a few suggestions of important middlewares in a prominent place :)
from discussions.
@andywer You are right brother I also face the same thing that there is nothing mention in there docs for the routing. That's why I had updated their Koa vs Express doc file and mentioned that there is third party library support available for handling routing. Check this doc in the last I had added a section "Koa routing (third party libraries support)".
https://github.com/koajs/koa/blob/master/docs/koa-vs-express.md
from discussions.
my preferred solution would be to create a wiki of "recommended" middleware to get your app running, then linking to that in the official docs. the official docs, however, should remain minimal
from discussions.
a link here would be great on the docs https://github.com/koajs/koa/wiki#routing-and-mounting
if there are any middleware that are no longer maintained, please open an issue in that repo. if they don't answer, feel free to remove it from the wiki!
from discussions.
Related Issues (20)
- Move koa modules into this organization HOT 1
- ctx.req.on and ctx.req.pipe limitations ?
- Hosting mp3 file HOT 2
- Why Koa ctx.body not working in if statement? HOT 3
- EPIPE error occurs when the server returns mp3 file. HOT 1
- Cannot make middleware to coerce type of query parameter HOT 1
- Question on inheriting Koa HOT 1
- How to exclude api router? HOT 1
- Access to XMLHttpRequest at 'https://localhost:3443/images' from origin 'http://localhost:4200' has been blocked by CORS policy
- Conditional middleware
- Hosting mp3 file
- Either 404 or wrong content HOT 1
- [koa] Unexpected exit with code 0 during an http request HOT 4
- Using both koa-compress and koa-static , extremely slow when visit static files from 127.0.0.1 or localhost (from public address is fast), why? HOT 2
- Brotli compress is slow HOT 2
- @fl0w becomes @miwnwski HOT 1
- How can I catch EADDRINUSE? HOT 5
- Uncaught `TypeError: Cannot read property 'hasHeader' of undefined` error
- Respond to Koa request immediately, continue middleware chain HOT 5
- Why the request url parameter + is turned into a space? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discussions.