React 服务器端配置工具 kkt-ssr

码农软件 · 软件分类 · React 开源项目 · 2019-04-27 21:27:29

软件介绍

无需配置即可创建React服务器端工具。

快速开始

npx create-kkt-app my-app
cd my-app
npm start

您还可以从其中一个示例初始化项目。 例如jaywcjlove/kkt-ssr

# Using the template method
# `npx create-kkt-app my-app [-e example name]`
npx create-kkt-app my-app -e react-router+rematch

or

npm install -g create-kkt-app
# 创建项目,使用模板方法
create-kkt-app my-app -e react-router+rematch
cd my-app # 输入my-app目录
npm start # 开始服务

开发

以开发模式运行项目。

npm run start

生产环境

将生产应用程序,构建到构建文件夹。

npm run build

构建被缩小,文件名包含哈希。 您的应用已准备好部署!

# 在生产中运行已编译的应用程序。
npm run server

示例

对于生产项目,建议使用完整的 react + react-router + rematch(redux) 示例,类似于 next.js.

 

本文地址:https://codercto.com/soft/d/4530.html

Head First Python

Head First Python

Paul Barry / O'Reilly Media / 2010-11-30 / USD 49.99

Are you keen to add Python to your programming skills? Learn quickly and have some fun at the same time with Head First Python. This book takes you beyond typical how-to manuals with engaging images, ......一起来看看 《Head First Python》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

SHA 加密
SHA 加密

SHA 加密工具