An open API service indexing awesome lists of open source software.

https://github.com/yaodingyd/universal-react-redux-template

A template project with universal react and redux
https://github.com/yaodingyd/universal-react-redux-template

react

Last synced: 3 months ago
JSON representation

A template project with universal react and redux

Awesome Lists containing this project

README

          

# Universal React & Redux Template with server-side authentication

### Webpack config and build options

1. Webpack 2
2. JavaScript lint: Standard
3. CSS module
4. Postcss: auto-prefixer, SASS-like

### Features

1. Backend: Express app
2. Authentication using `passport`. Use `local` strategies.
3. JWT instead of session
4. Frontend: React + Redux
5. Routing: react-router v3
5. Server-side Rendering

### Notes

1. .vscode folder is included. Run node server in VSCode for server debugging
2. Setup webpack-dev-server for serving static files

### TODOs

1. `facebook` strategies

### Run App

1. `npm run dev:client` : client app runs on http://localhost:8080
2. `npm start`: server listens on port:3000. Whole app runs on http://localhost:3000.