Boilerplate for react-redux project with webpack 2 and tests
MIT License
Boilerplate for react-redux project with webpack 2 and tests
Run the following commands to verify that you have the correct versions of Node and NPM installed:
node -v
npm -v
git clone [email protected]:Faradey27/react-redux-webpack2-starterkit.git react-redux-webpack2-starterkit
cd react-redux-webpack2-starterkit
npm install
npm run testserver
react-redux-webpack2-starterkit/dist
- this is production build of ui files, you can serve them or upload to some hosting(like github pages)cd react-redux-webpack2-starterkit
docker build -t faradey27/react-redux-webpack2-starterkit .
docker run -p 49160:3001 -d faradey27/react-redux-webpack2-starterkit
Do steps - a,b,c (from start of readme)
npm start
after running this command development version of web-ui will be availible on http://localhost:3002
Note: development version much more slower that production version
Do steps - a,b,c (from start of readme)
npm test
Do steps - a,b,c (from start of readme)
npm run test:coverage
Do steps - a,b,c (from start of readme)
npm run test:e2e
Do steps - a,b,c (from start of readme)
npm run selenium - don't stop this process
open new tab enter next command and tests will start
npm run test:e2e
Boilerplate internalization depend on:
To get all labels in po file you require to do steps a,b,c and run
npm run createLocaleFiles
after that you should go to react-redux-webpack2-starterkit/lang and find their .po files for each language, open each with po editor po-edit and add related labels for each language.
After that
npm run convertPOtoJson
and after that npm run build
your build will be in react-redux-webpack2-starterkit/dist with multilanguage support
npm run testserver
use localhost:3001npm start
use localhost:3002export const API_URL = 'http://10.2.3.103:8081';
- you will see this, it's api url, change it on whatewer you want and rebuild project(npm run build
or npm start
)or, if you don't want to rebuild project
go to file react-redux-webpack2-starterkit/dist/config.js
and change same constants, after that just refresh page with web-ui