A CLI for scaffolding a Sails + React boilerplate.
Install the module globally:
$ npm install -g sails-react-webpackTo generate a new project, run:
sails-react-webpack [project-name]
cd [project-name]
npm install
// or
yarnnpm start will run all processes in the Procfile. It will start both Sails AND the Webpack Dev Server simultaneously.
npm startTo view your app, go to http://localhost:3000 in your browser.
Webpack builds the bundle files on postinstall and sails is lifted the same way it's always lifted in production:
sails lift --prodYou can run this script manually with npm run dist.
Use react-component-gen to generate new components on the fly.