Skip to content

React server-side rendering boilerplate project with Express, ejs, react-route

License

Notifications You must be signed in to change notification settings

sergiocruz/react-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactJS server-side boilerplate

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.

Tech stack

This project relies on the following technologies:

How to get started

  1. You will need bower install globally before starting: npm install bower -g

  2. Clone this repo, cd into the repo directory and run: npm install && bower install

  3. Run npm start and navigate to http://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.

TODOS:

  • 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-async webpack 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!

Suggestions?

Do you have any suggestions on how this project could be better? Feel free to open an issue and let's discuss it :)

About

React server-side rendering boilerplate project with Express, ejs, react-route

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published