Code Monkey home page Code Monkey logo

react-native.cn's Introduction

第三版重构

我们正在对React Native 中文网进行第三版重构,这次重构的目标有:

  1. 在github开源,接受issue和pull-request(主要是文档)。
  2. 重构server-rendering,实现同构而非独立的SEO页面。
  3. 和论坛进行较深入整合,绑定更多动态内容。

提交文档

请访问文档所在的仓库,fork后新建或修订文档,然后创建Pull Request。我们会在第一时间审阅。欢迎社区的朋友们踊跃贡献!

开发环境

打开两个命令行终端,分别运行(要启用redux dev tool,在webpack-dev后增加--showDevTool参数):

$ node bin/cli webpack-dev [--showDevTool]
$ node bin/cli development

然后打开http://localhost:3000/ 查看结果。

修改部分模块代码后,页面会自动刷新。要测试server rendering,则可以手动刷新页面。

部署环境(测试)

$ node bin/cli build-client
$ node bin/cli productionWithAssets

部署环境(运行)

$ node bin/cli build-client
$ node bin/cli production

注意要对应配置Nginx或Apache前端,端口映射到本地3000,并且导向scripts目录到build-release目录,static目录到static目录。

react-native.cn's People

Contributors

sunnylqm avatar tdzl2003 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.