All Projects → song940 → koa-routeify

song940 / koa-routeify

Licence: MIT License
the next router for koajs.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to koa-routeify

MVVM-Sample
Swift MVVM Sample project. Made with ReactiveCocoa, Swinject and Routers
Stars: ✭ 21 (+75%)
Mutual labels:  router
astlinux
AstLinux is a "Network Appliance for Communications" x86_64 Linux distribution
Stars: ✭ 23 (+91.67%)
Mutual labels:  router
cra-redux-boilerplate
⚛️🔨create-react-app application with redux and another cool libraries to make your life easier.
Stars: ✭ 15 (+25%)
Mutual labels:  router
koa-rest-router
Most powerful, flexible and composable router for building enterprise RESTful APIs easily!
Stars: ✭ 67 (+458.33%)
Mutual labels:  router
Helm
A graph-based SwiftUI router
Stars: ✭ 64 (+433.33%)
Mutual labels:  router
okwolo
light javascript framework to build web applications
Stars: ✭ 19 (+58.33%)
Mutual labels:  router
svelte-router
Router component for Svelte
Stars: ✭ 63 (+425%)
Mutual labels:  router
go router
The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
Stars: ✭ 380 (+3066.67%)
Mutual labels:  router
noddos
Noddos client
Stars: ✭ 78 (+550%)
Mutual labels:  router
navigation-skeleton
This component allows you to show skeletons of pages during navigation process.
Stars: ✭ 16 (+33.33%)
Mutual labels:  router
nativescript-vue-router
A simple router implementation that is suitable for NativeScript-Vue.
Stars: ✭ 14 (+16.67%)
Mutual labels:  router
http-server-router
A router for Amp's HTTP Server.
Stars: ✭ 28 (+133.33%)
Mutual labels:  router
smoothr
A custom React router that leverages the Web Animations API and CSS animations.
Stars: ✭ 28 (+133.33%)
Mutual labels:  router
slim-wrt
Armor for Openwrt
Stars: ✭ 66 (+450%)
Mutual labels:  router
polix
🚀 Node.js Web Framework
Stars: ✭ 32 (+166.67%)
Mutual labels:  koajs
spirit-router
fast router for spirit
Stars: ✭ 28 (+133.33%)
Mutual labels:  router
generator-tsx
Yeoman generator for CRA + TypeScript + React + Redux + Router + Testing Library.
Stars: ✭ 25 (+108.33%)
Mutual labels:  router
fritz-box
📦 Promise-based JavaScript FRITZ!Box API.
Stars: ✭ 14 (+16.67%)
Mutual labels:  router
xRoute
一个小型的前端路由库✈️
Stars: ✭ 36 (+200%)
Mutual labels:  router
nthu-route
VLSI EDA Global Router
Stars: ✭ 35 (+191.67%)
Mutual labels:  router

koa-routeify npm

the next router for koajs.

NPM

Installation

$ npm install koa-routeify --save

If you use koa v1.x, please install koa-routeify v1.x too.

Example

app.js

import koa      from 'koa';
import routeify from 'koa-routeify';

const app = koa();

app.use(routeify(app));

app.listen(3000);

routes/route.js

get /:name => home#index

controllers/home.js

class Home {
  index(name){
    this.ctx.body = `Hello ${ name || 'World' }!`;
  }
}

API

check this file: index.js

Contributing

  • Fork this repo
  • Clone your repo
  • Install dependencies
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Open a pull request, and enjoy <3

MIT license

Copyright (c) 2015 lsong

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].