项目作者: PyColors

项目描述 :
Isomorphic react application
高级语言: JavaScript
项目地址: git://github.com/PyColors/isomorphic-react-app.git
创建时间: 2018-09-04T20:37:55Z
项目社区:https://github.com/PyColors/isomorphic-react-app

开源协议:MIT License

下载


" class="reference-link">Isomorphic React App N|Solid

N|Solid

Isomorphic React App is a Server-Side Rendering application with All Best Practices.

Tech

Isomorphic React App uses a number of open source projects to work properly:

  • React - A JavaScript library for building user interfaces
  • Redux - Predictable state container for JavaScript apps
  • redux-saga - An alternative side effect model for Redux apps
  • Jest - Delightful JavaScript Testing
  • Webpack - Bundle assets scripts
  • [Babel] - The compiler for writing next generation JavaScript

And of course Isomorphic React App itself is open source with a public repository on GitHub.

Installation

This app requires Node.js v8+ to run.

Install the dependencies.

  1. $ move into directory
  2. $ npm install

Start the server

Start the local server on with livereload by webpack: port:3000

  1. $ npm start-dev

Test

Runs the test

  1. $ npm test

Runs the test watcher in an interactive mode.

  1. $ jest --watch or npm test --watch

For production

Runs in prod

  1. $ npm start-test

Builds JavaScript for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

  1. $ npm build

License

MIT

Free Software, Hell Yeah!

[Babel]: https://babeljs.io