Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reacket-boots-template

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reacket-boots-template

A base skeleton template for react and webpack without task runners

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

  1. 配置后端环境(略)

  2. 安装 Git:yum install git

  3. 在服务器上安装 node: https://nodejs.org/dist/v4.2.1/

  4. 从仓库中拉取项目 git clone git@git.corp.qihoo.net:g-platform-dev/private-cloud-fe.git 并切换到 develop 分支

    $ cd private-cloud-fe
    $ git checkout develop
    
  5. 进入项目页添加 nginx 配置文件并添加文件到 .gitignore 中:

    $ cd src/nginx
    $ cp lizheming.cloud.cn.conf yourname.conf  # 修改 yourname 为你的文件名
    $ vi yourname.conf  # 修改 server_name 和 root 为对应的地址,其中 root 需要指定到 provate-cloud-fe/dist 文件夹
    
  6. 修改 private-cloud-fe/src/common/request/index.js 中的第 4 行地址为配置好的后端地址并将此文件添加到 .gitignore

  7. 安装所需要的依赖并编译:

    $ cd private-cloud-fe
    $ npm install --registry=https://registry.npm.taobao.org
    $ npm run dist
    
  8. 将 nginx 配置文件软链到 NGINX 配置文件夹中:

    ln -s /home/lizheming/private-cloud-fe/dist/nginx/yourname.conf /usr/local/nginx/conf/yourname.conf
    
  9. 重启 NGINX 服务

Installation Tips

如果是 Windows 环境安装 node-sass 之前需要安装 VS Express

npm install --registry=https://registry.npm.taobao.org --verbose

编译

npm run build
npm run buildmin
npm run dist

启动调试

npm start
npm startdist

后者和前者的区别是startdist会进行压缩并单独拷贝到dist目录,和线上环境最接近

用到的组件

jquery
bootstrap
react
react-router
react-boostrap

Keywords

FAQs

Package last updated on 07 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc