Code Monkey home page Code Monkey logo

react-redux-app-spa's Introduction

React Redux 打造的web app~ 其中商品模块的一个分支

npm install

npm run mock 启动mock server 拿到相关数据 / 具体可看mock/server.js文件

npm start 后浏览器会自动打开(请在手机或浏览器手机模式下浏览) localhost:8080/

npm run build 打包(windows需先建立一个build的空文件夹)

注意:

IOS Windows下有差异,该配置是在win10下跑的,

若在IOS环境,请修改 package.json

"start": "NODE_ENV=dev webpack-dev-server --progress --colors", "mock": "node ./mock/server.js", "build": "rm -rf ./build && NODE_ENV=production webpack --config ./webpack.production.config.js --progress --colors" },

windows下 scripts (作个备份)

"scripts": { "start": "set NODE_ENV=dev && webpack-dev-server --progress --colors --port 8080", "build": "rm -rf ./build && set NODE_ENV=production webpack --config ./webpack.production.config.js --progress --colors", "mock": "node ./mock/server.js" },

react-redux-app-spa's People

Contributors

fridolph avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.