Git Product home page Git Product logo

express-react-redux's Introduction

express-react-redux

Build Status npm

Express middleware for React/Redux applications

Motivation

For beginners, building a development environment for a React/Redux app is a time-consuming task, while they want to start to coding an app. To this end, there are various packages that support building React/Redux apps. However, I wasn't able to find one that fulfills my requirements:

  • It's provided as a library not as a tool nor a boilerplate.
  • It can be used not only for learning but for production.
  • It's not a blackbox, but can be used for learning how it works.
  • It should be customizable if you learn enough.

Hence, I decided to create yet another pakcage for the same purpose. This package is express middleware with the assumption that server logic is implemented in express and express provides APIs to the client app. Let's call it an Express/React/Redux app.

What is this

This is simple express middleware that comes with a default opinionated webpack config. It provides some functionalities by default:

  • babel transformation (latest+stage3)
  • hot module replacement
  • server side rendering

How to use

create an app folder:

mkdir sample-app
cd sample-app
npm init

install packages:

npm install express express-react-redux --save

import a template app:

$(npm bin)/express-react-redux import tiny-todos

run a dev server:

PORT=3000 npm start

build and run a production server:

npm run build
PORT=3000 NODE_ENV=production npm start

Similar Projects

express-react-redux's People

Contributors

dai-shi avatar gionatan-lombardi avatar

Watchers

 avatar

express-react-redux's Issues

Dynamic head and meta tags

The goal is to populate the head data dynamically (eg. from an CMS API serving system), before the SSR and directly in React when a page changes.

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.