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 install
to scaffold up dependencies - run
npm run dev
to start Sails server indevelopment
mode - run
npm run prod
to start Sails server inproduction
mode
MIT