I love how React allows you render apps on the server and have the client take on from where the server left it. My goal for this project is to have a lean boilerplate so I can use it to start my next ReactJS apps.
This project relies on the following technologies:
-
You will need
bower
install globally before starting:npm install bower -g
-
Clone this repo,
cd
into the repo directory and run:npm install && bower install
-
Run
npm start
and navigate tohttp://localhost:8080
on your browser
Attention: this project will use your default process.env.PORT
and will fall back to port 8080
in case it is not set.
- Handle
NotFound
cases with react-route - Make sure server-side will return a
404 http status
with invalid requests - Establish a clear way to rehydrate app state after client kicks in
- Implement
react-asyncwebpack so client doesn't have to downlaod the js all at once - Issue #4 - Find good isomorphic/browserified
request
library for API requests: superagent is our guy!
Do you have any suggestions on how this project could be better? Feel free to open an issue and let's discuss it :)