All Projects → 51nb → Miox

51nb / Miox

Licence: mit
Modern infrastructure of complex SPA

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Miox

Award
⚙基于react的服务端渲染框架
Stars: ✭ 91 (-75.67%)
Mutual labels:  webpack, plugin, ssr, spa
Ssr Sample
A minimum sample of Server-Side-Rendering, Single-Page-Application and Progressive Web App
Stars: ✭ 285 (-23.8%)
Mutual labels:  webpack, ssr, spa
Dotweb
Simple and easy go web micro framework
Stars: ✭ 1,354 (+262.03%)
Mutual labels:  middleware, cache, router
Universal Router
A simple middleware-style router for isomorphic JavaScript web apps
Stars: ✭ 1,598 (+327.27%)
Mutual labels:  router, ssr, spa
Strapi Middleware Cache
🔌 A cache middleware for https://strapi.io
Stars: ✭ 146 (-60.96%)
Mutual labels:  middleware, cache, plugin
Webvr Webpack Boilerplate
A webvr multi-scenes Single-page application for three.js, webpack
Stars: ✭ 47 (-87.43%)
Mutual labels:  webpack, router, spa
Ice
🚀 The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
Stars: ✭ 16,961 (+4435.03%)
Mutual labels:  webpack, ssr, spa
Redux Json Router
Declarative, Redux-first routing for React/Redux browser applications.
Stars: ✭ 37 (-90.11%)
Mutual labels:  webpack, middleware, router
Vue2 Demo
Vue 基于 Genesis + TS + Vuex 实现的 SSR demo
Stars: ✭ 2,072 (+454.01%)
Mutual labels:  webpack, demo, ssr
Frontexpress
An Express.js-Style router for the front-end
Stars: ✭ 263 (-29.68%)
Mutual labels:  middleware, router, spa
React Loadable
⏳ A higher order component for loading components with promises.
Stars: ✭ 16,238 (+4241.71%)
Mutual labels:  webpack, ssr
Angular
UI-Router for Angular: State-based routing for Angular (v2+)
Stars: ✭ 287 (-23.26%)
Mutual labels:  router, spa
Webpack Vue Multiplepage
在多页面项目下使用 Webpack + Vue
Stars: ✭ 288 (-22.99%)
Mutual labels:  webpack, demo
Simple Php Router
Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
Stars: ✭ 279 (-25.4%)
Mutual labels:  middleware, router
Faraday Http Cache
a faraday middleware that respects HTTP cache
Stars: ✭ 276 (-26.2%)
Mutual labels:  middleware, cache
React Storefront
React Storefront - PWA for eCommerce. 100% offline, platform agnostic, headless, Magento 2 supported. Always Open Source, Apache-2.0 license. Join us as contributor ([email protected]).
Stars: ✭ 292 (-21.93%)
Mutual labels:  ssr, spa
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-21.39%)
Mutual labels:  engine, demo
React Storefront
Build and deploy e-commerce progressive web apps (PWAs) in record time.
Stars: ✭ 275 (-26.47%)
Mutual labels:  ssr, spa
Abstract State Router
Like ui-router, but without all the Angular. The best way to structure a single-page webapp.
Stars: ✭ 288 (-22.99%)
Mutual labels:  router, spa
Vue Video Player
🎞 @videojs component for @vuejs
Stars: ✭ 4,026 (+976.47%)
Mutual labels:  ssr, spa

Modern Infrastructure Of Complex SPA

Build Status Coverage Status NPM Version NPM Downloads miox starter

Miox is an SPA management framework.

In classic web development, browser creates and manages a series of lifecycle activities of web page, such as session history, page creation, discard, pageshow, pagehide, on which developers can process their own logic.

In an SPA application, developers have to deal with all these events by themselves, or by a framework that deals with them. Miox is yet another framework deals with them.

  • What makes Miox special, is that it supports any render core, which means with Miox, developer can simultaneously introduce Miox into their projects and stay with his favorite react or vue.
  • Miox focuses on being an SPA runtime, with such limited small goal, it developed the ability to easily integrate with most essential technologies, including redux/vuex, SSR and so on.

As of today, almost every web front-end project in 51 credit card is using Miox as there SPA framework, on both PC and mobile sides, which means Miox is already widely used and tested in production.

Demo

Documentation

You can find the Miox documentation on the website. It is divided into several sections:

You can improve it by sending pull requests to this repository.

We provide an article to illustrate Miox.

Examples

You can start your project with the following code:

index.js: The entrance of your project.

import Miox from 'miox';
import Engine from 'miox-react';
import router from './route';

const app = new Miox({...options});
app.install(Engine);
app.use(router.routes());
export default app.listen();

route.js: Routing file.

import Router from 'miox-router';
import Page from './page.jsx';

const route = new Router();
export default route;
route.patch('/', async ctx => {
  await ctx.render(Page);
});

page.jsx: Rendering webview file.

import React from 'react';
import ReactDOM from 'react-dom';
export default class ExamplePage extends React.Component {
  render() {
    return <h1>Hello World!</h1>;
  }
}

This example will render "Hello World!" into a container on the page.

Installation

Miox is available as the miox package on npm.

We provide a scaffold to facilitate the installation of the project. Once the project is installed, you can start writing business logic.

Install miox-cli to create project:

npm install -g miox-cli

Then run the code of miox create to create a new project:

miox create

More commands, please read here.

Contributing

The main purpose of this repository is to continue to evolve Miox, making it faster and easier to use. Development of Miox happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements.

Change logs

You can read the change logs here.

License

Miox is MIT licensed.

Copyright (c) 2015-present, evio(沈赟杰) - 51 credit.Inc 杭州恩牛网络技术有限公司.

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