前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用 WebStorm 创建 React App构建通用的 React 和 Node 应用

使用 WebStorm 创建 React App构建通用的 React 和 Node 应用

作者头像
一个会写诗的程序员
发布2018-08-17 14:08:49
1.6K0
发布2018-08-17 14:08:49
举报

image.png

代码语言:javascript
复制
/usr/local/bin/node /usr/local/lib/node_modules/create-react-app/index.js .
Creating a new React app in /Users/jack/WebstormProjects/helloworld.

Installing packages. This might take a couple minutes.
Installing react-scripts from npm...


> fsevents@1.1.2 install /Users/jack/WebstormProjects/helloworld/node_modules/fsevents
> node install

[fsevents] Success: "/Users/jack/WebstormProjects/helloworld/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> uglifyjs-webpack-plugin@0.4.6 postinstall /Users/jack/WebstormProjects/helloworld/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

+ react-scripts@1.0.17
added 1263 packages in 116.581s
npm notice created a lockfile as package-lock.json. You should commit this file.
Installing react and react-dom using npm...

+ react-dom@16.1.1
+ react@16.1.1
added 2 packages in 19.051s

Success! Created helloworld at /Users/jack/WebstormProjects/helloworld
Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd /Users/jack/WebstormProjects/helloworld
  npm start

Happy hacking!
Done

构建通用的 React 和 Node 应用

原文:Build a universal React and Node App

演示:https://judo-heroes.herokuapp.com/

译者:nzbin

译者的话:这是一篇非常优秀的 React 教程,该文对 React 组件、React Router 以及 Node 做了很好的梳理。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017.11.21 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 构建通用的 React 和 Node 应用
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档