This is a good starting point if you want to use Sails as back-end and React in front-end.
Apart from this Sails-React starter kit this one fully uses Webpack as an integrated into pipeline grunt build task. Also I have stepped out from using Bower as front-end package manager and left all to npm so if you need any additional package that you want to import to your React app, use npm.
Upon navigating to / an index.jade view will be shown that starts React application. All React application code is located at assets/app.
In order to modify grunt task that bundles React code look at tasks/config/webpack.js.
- clone by
git clone https://github.com/kaytrance/sails-react-webpack-starter-kit.git - cd to cloned folder by
cd sails-react-webpack-starter-kit - run
npm installto scaffold up dependencies - run
npm run devto start Sails server indevelopmentmode - run
npm run prodto start Sails server inproductionmode
MIT