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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?