Giter Site home page Giter Site logo

risingstack / react-way-immutable-flux Goto Github PK

View Code? Open in Web Editor NEW
224.0 12.0 20.0 150 KB

React.js way with ES6, Immutable.js and Flux

Home Page: http://blog.risingstack.com/the-react-js-way-flux-architecture-with-immutable-js/

License: MIT License

JavaScript 96.33% HTML 1.81% CSS 1.85%

react-way-immutable-flux's Introduction

react-way-immutable-flux's People

Contributors

gergelyke avatar hekike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-way-immutable-flux's Issues

didn't work until I added presets

I did npm install, npm start but when I viewed the localhost:3000
It showed a console error "import". The bundle.js file had "import" statement, instead of including the code.

To get it to work, I ended upchanging the webpack.js

  loader: 'babel'
      }

to

loader: 'babel-loader',
        query: {
          presets: ['es2015', 'react']
        }
      }

and added to package.json

    "babel-core": "^6.0.12",
    "babel-loader": "^6.0.1",
    "babel-preset-es2015": "^6.0.12",
    "babel-preset-react": "^6.5.0",

FYI: I'm using an older node version "v0.10.26"

failing tests

Using Jest CLI v0.4.13
FAIL src/app/components/tests/Cart.spec.js
Error: Worker process exited before responding! exit code: null, exit signal: SIGSEGV
stderr:

A worker process has quit unexpectedly! This is bad news, shutting down now!
npm ERR! Test failed. See above for more details.

Bundle.js not getting created on npm start

I'm trying to run the code, followed the simple steps of npm install and attempt to npm start. The server runs at port 3000, but upon visiting localhost:3000, I get a blank page and Chrome console reveals that bundle.js is a 404. Further inspection to the code shows that it's certainly not getting created. So I attempted to run 'npm run postinstall' as well as webpack and webpack-watch, but I get the following error:

$ npm run postinstall

> [email protected] postinstall c:\projects\react-way-immutable-fl
ux
> webpack --config config/webpack.js

Hash: 396f0bfb9d565b6f60f0
Version: webpack 1.10.1
Time: 38ms
   [0] ./src/client/scripts/client.js 0 bytes [built] [failed]

ERROR in ./src/client/scripts/client.js
Module parse failed: c:\projects\react-way-immutable-flux\src\client\scripts\cli
ent.js Line 1: Unexpected reserved word
You may need an appropriate loader to handle this file type.
| import Debug from 'debug';
| import App from '../../app';
|

Any pointers on this one? Thanks.

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.