Template for modular projects using React, Node.js, Lerna and GraphQL.
For an updated version of this templates, please head over to Goldstack and have a look at the Next.js Template.
git clone git@github.com:mxro/nodejs-react-monorepo-starter-kit.git
cd nodejs-react-monorepo-starter-kit
lerna bootstrap
To spin up a local development server with hot reload, run:
yarn build
yarn watch
This will perform hot reloads on the main server component server-main
and React app client-main
. To enable hot reloading on other components, also run the following in a different terminal window:
yarn watch-componentss
To run production version
yarn build
PORT=8081 yarn serve