• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Baiang/ReactSSR: server-side rendering(SSR) scheme based on Next.js+Koa React, ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Baiang/ReactSSR

开源软件地址:

https://github.com/Baiang/ReactSSR

开源编程语言:

TypeScript 72.8%

开源软件介绍:

server-side rendering(SSR) scheme based on Next.js+Koa React

ReactSSR is based on Next.js+koa React's SSR server-side rendering solution, which is easy to use and works out of the box.

Background: In the use of react, there is no scaffolding tool like vue-cli, egg enterprise architecture and code specification; for novices, it is not suitable for immediate action.

Doc

Features

  • Koa: Integrated koa backend architecture (planned to develop optional egg).
  • Server-Side Rendering (SSR): Use the Next.js SSR rendering scheme to make development simpler and cooler.
  • Css compiler: support for the introduction of less, sass, css development, external resource references.
  • Css-in-js: styled-jsx integrated sass solution, easy to use, quickly write css style.
  • Code syntax: eslint grammar rule detection and prettier code style checking tools, integrated TypeScript, to make the grammar more - rigorous, code style unified.
  • Unit test: jest, greatly reducing the difficulty of writing unit tests, no need for more configuration.
  • Grammatical compatibility: support React className and class two styles; css, sass, less, styled-jsx support autoprefixer prefix auto-fill
  • Code optimization: support package module analysis npm run analyze: bundles; source Maps.

Quick Start

# git clone
> git clone [email protected]:Baiang/ReactSSR.git

# install
> npm install

# dev
> npm run dev

# Eslint code detection and prettier formatting code
> npm run eslint

# Automatic eslint code detection and prettier formatting code
> npm run lint:watch

# Unit test and coverage test
> npm run test

# build
> npm run build

# analyze:bundles
> npm run analyze:bundles

# Start the server
> npm run start

Eslint

You can use the Standard specification or you can choose Airbnb. Eslint offers two specifications:

Unit test

React unit test based on Jest + Enzyme

Editor syntax highlighting

Styled-jsx syntax highlighting method https://github.com/zeit/styled-jsx

TODOs

  • Add egg
  • Add dva
  • Support vue-ssr switch



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap