razzle-material-ui-styled-example

Razzle Material-UI example with Styled Components using Express with compression

Github星跟踪图

Features

    • Server Side Rendering
    • Hot Module Replacement for both client and server side React components
    • Up to date JavaScript (ECMAScript 6 (2015)) support
    • Single route static site generation
  • server with gzip compression

Getting Started

  • Initial steps
    • Install and .
    • Download or clone this repository.
    • Open a command prompt in the project folder.

Install dependencies:

yarn install

Start the server:

yarn start

This command initiates a build process and starts the server in production mode.

Visit http://localhost/ to access the web application.

Development

Start the server in development mode:

yarn dev

Single route static site generation

Generate a static site:

yarn static

Open the index.html within the static folder to access the web application. The folder name can be modified with the RAZZLE_STATIC_PATH environment variable.

Idea behind the example

This project is based on the basic razzle example. This repository also satisfies the following 2 entry points requred by Razzle:

  • src/index.js for the server
  • src/client.js for the browser

主要指标

概览
名称与所有者kireerik/razzle-material-ui-styled-example
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证
所有者活动
创建于2017-05-12 21:02:20
推送于2024-12-09 03:22:34
最后一次提交2018-12-23 22:41:46
发布数11
最新版本名称1.5.0 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数113
关注者数5
派生数14
提交数56
已启用问题?
问题数2
打开的问题数0
拉请求数0
打开的拉请求数12
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?