All Projects → cheft → Minrouter

cheft / Minrouter

a micro middleware router for isomorphic javaScript web apps

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Minrouter

Rill
🗺 Universal router for web applications.
Stars: ✭ 541 (+240.25%)
Mutual labels:  universal, isomorphic, router
Danf
Danf is a Node.js full-stack isomorphic OOP framework allowing to code the same way on both client and server sides. It helps you to make deep architectures and handle asynchronous flows in order to help in producing scalable, maintainable, testable and performant applications.
Stars: ✭ 58 (-63.52%)
Mutual labels:  universal, isomorphic
Universal React Demo
ES6 demo of a simple but scalable React app with react-router, code splitting, server side rendering, and tree shaking.
Stars: ✭ 50 (-68.55%)
Mutual labels:  universal, isomorphic
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (-7.55%)
Mutual labels:  universal, isomorphic
Webpack Isomorphic Dev Middleware
The webpack-dev-middleware, but for isomorphic applications
Stars: ✭ 38 (-76.1%)
Mutual labels:  universal, isomorphic
Push Starter
React Redux Starter with SSR 🤖
Stars: ✭ 43 (-72.96%)
Mutual labels:  universal, isomorphic
Koa React Universal
lightweight React-Koa2 universal boilerplate, only what is essential
Stars: ✭ 112 (-29.56%)
Mutual labels:  universal, isomorphic
Catberry
Catberry is an isomorphic framework for building universal front-end apps using components, Flux architecture and progressive rendering.
Stars: ✭ 793 (+398.74%)
Mutual labels:  universal, isomorphic
Razzle
✨ Create server-rendered universal JavaScript applications with no configuration
Stars: ✭ 10,547 (+6533.33%)
Mutual labels:  universal, isomorphic
Razzle Material Ui Styled Example
Razzle Material-UI example with Styled Components using Express with compression
Stars: ✭ 117 (-26.42%)
Mutual labels:  universal, isomorphic
Nextjs Dynamic Routes
[Deprecated] Super simple way to create dynamic routes with Next.js
Stars: ✭ 145 (-8.81%)
Mutual labels:  isomorphic, router
Nuxt.js
The Intuitive Vue(2) Framework
Stars: ✭ 38,986 (+24419.5%)
Mutual labels:  universal, isomorphic
Isomorph
Shared utilities for browsers and Node.js
Stars: ✭ 9 (-94.34%)
Mutual labels:  universal, isomorphic
Jose
Universal "JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK with no dependencies
Stars: ✭ 1,029 (+547.17%)
Mutual labels:  universal, isomorphic
Usus
Webpage pre-rendering service. ⚡️
Stars: ✭ 804 (+405.66%)
Mutual labels:  universal, isomorphic
React Base
atSistemas React/Redux Isomorphic Platform
Stars: ✭ 82 (-48.43%)
Mutual labels:  universal, isomorphic
Isomorphic Lab
Isomorphic React experimentation
Stars: ✭ 144 (-9.43%)
Mutual labels:  universal, isomorphic
Universal
Seed project for Angular Universal apps featuring Server-Side Rendering (SSR), Webpack, CLI scaffolding, dev/prod modes, AoT compilation, HMR, SCSS compilation, lazy loading, config, cache, i18n, SEO, and TSLint/codelyzer
Stars: ✭ 669 (+320.75%)
Mutual labels:  universal, isomorphic
Hackernews
HackerNews clone built with Nuxt.js
Stars: ✭ 758 (+376.73%)
Mutual labels:  universal, isomorphic
React Redux Boilerplate
It is a boilerplate of React-Redux as the infrastructure, which helps to setup a Web APP quickly
Stars: ✭ 113 (-28.93%)
Mutual labels:  universal, isomorphic

minrouter

a micro middleware router that can be used in both client-side (e.g. dot.js, vue, react, preact) and server-side applications (e.g. Node.js/Express, Koa)

features

  • support koa
  • support express
  • support browser pushState & replaceState
  • middleware router, API like express

preview

preview

install

npm install minrouter

build

npm run build

run demo

# build the web code
npm run demo

# http://localhost:3000
npm run express

or

# http://localhost:4000
npm run koa

or

# http://localhost:4000
npm run preact

usage

see demo directory code

api

  • Router.get(path, fn)
  • Router.addResMethod(name, fn)
  • Router.go(path, isReplace) only browser
  • Router.back() only browser
  • Router.proxyLinks(nodes) only browser
  • req.query & req.params, this.ctx, this.ctx.res

see src/minrouter.js

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].