This starter kit uses Webpack to bundle both the client and the server.
Find out more about Webpack, React, and Workbox.
The easiest way to use this starter kit is to clone it and delete the Git associations.
git clone https://github.com/michaellperry/starter-javascript-workbox-react.git myapplication
cd myapplication
rm -rf .git
Once you have the code, run:
npm install
To build:
npm run build
This creates a dist
folder with the server-side code in server.js
, and the client-side code in scripts/main.js
.
To run:
npm start
After the first build, you will probably want to run in development mode:
npm run dev
This will watch the source code for changes and rebuild as necessary. It will restart the server to load those changes.
Build something incredible!