JSPM

react-express-hotloader

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q43917F
  • License MIT

ReactJS, ExpressJS with react-hot-loader, Babel

Package Exports

  • react-express-hotloader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-express-hotloader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Express Hotloader

Deploy

I know there's a lot of boilerplate examples, but it was actually kinda hard to find this exact combination:

  • React
  • Express server
  • Auto-reloading Express server (only in development)
  • react-hot-loader (version 3) running on Express (only in development)
  • Babel for both React frontend and Express backend
  • EJS templates

Hence, I made this.

This is a "universal JavaScript" web-server. But, this is isn't a "complete universal React" app, because:

  • No server-side rendering
  • No react-router
  • No redux
  • No webpacking minifier for client-side JavaScript includes

I didn't include those things because I think they introduce a lot more complexity for people who are just trying to get started. This is more geared towards building something fast, not building a monolithic React SPA.

Install and run

In development:

npm install
npm start

In production:

npm install --production
npm run build
npm run serve

Authors

License

This project is licensed under the MIT License - see LICENSE.md file for details