generator-react-client

React + Node/Express generator

Usage no npm install needed!

<script type="module">
  import generatorReactClient from 'https://cdn.skypack.dev/generator-react-client';
</script>

README

React Client Generator (generator-react-client)

React client with Node/Express backend middleware

Installation

First, install Yeoman and generator-react-client using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-react-client

Then generate your new project:

yo react-client myproject

Project Documentation


Requirements

  • Node
  • npm

Stack

  • Node
  • Serverless (AWS Lambda + API Gateway + S3)
  • Webpack
  • ES6 (Babel)
  • React
  • React Router
  • Redux / Redux Form
  • PostCSS / SASS
  • Material UI
  • Jest / Enzyme / Chai

Initialization

npm i && npm run dev

Build to production|stage

NODE_ENV=production ENV=production|stage npm run build

Testing

Using jest with enzyme and chai (see examples on ./src/client/**/*.spec.js)
npm test

Deploy to AWS production|stage (with Serverless)

NODE_ENV=production ENV=production|stage npm run serverless:deploy