Coder Social home page Coder Social logo

dokenzy / redux-universal-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ufocoder/redux-universal-boilerplate

0.0 1.0 0.0 4.01 MB

Boilerplate for react universal (isomorphic) application based on flux architecture (redux implementation)

License: MIT License

JavaScript 98.36% CSS 1.64%

redux-universal-boilerplate's Introduction

Redux universal boilerplate

Boilerplate for react universal application building on flux architecture based on redux implementation.

Build Status Dependencies devDependencies Status MIT License

Boilerplate based on:

Features

  • es6/es7 syntax
  • Testing enviroment
  • Server and client side rendering
  • Routing on client and server sides
  • Hot module replacement
  • Html layout as react component
  • Not Found page with 404 HTTP status
  • Stubs of media asset modules for server bundle
  • Stylus CSS preprocessor support

Installation

git clone https://github.com/ufocoder/redux-universal-boilerplate.git
cd redux-universal-boilerplate

npm install

Production

To build and start project for production run in console:

NODE_ENV=production npm run build
NODE_ENV=production npm run start

Development

There're two ways to work with boilerplate

  1. Build once and then run bundles:
npm run build
npm run start
  1. Developing in watch mode:
npm run watch

Watch mode

When you run in console:

npm run watch

Two web servers will be run:

  • web-server for backend started by server entry point on 8000 default port
  • webpack-dev-server with client bundle working on 8080 default port

For working with hot reloading mode, open your in browser http://localhost:8080/, all non-assets http request to will be proxy to backend endpoint

Example of hot reload mode

Testing enviroment

There is a watch mode for testing:

npm run test:watch

Attention

Don't forget that there's universal (isomorphic) boilerplate so you need to consider this fact when you will develop your UI application.

Remember that you should use browser objects (like window, document and etc.) in ReactJS componentDidMount Method

Contributing

I would be thankful for your issues and pull requests

License

MIT license. Copyright © 2016, Ufocoder. All rights reserved.

redux-universal-boilerplate's People

Contributors

dokenzy avatar ufocoder 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.