/cordova-template-react-hot-loader-with-redux

This is a cordova / phonegap template that includes React, Redux, ES2015, Webpack, and hot module reloading

Primary LanguageJavaScriptMIT LicenseMIT

Image of the month picker

Cordova / Phonegap, React, Redux Template

This work is mostly inspired by this project.

Presentation

This template mixes Cordova with React And Redux in order to develop some efficient apps with almost zero configuration, you can use ES6 syntax to write your components based on this template.

Requirements

the following software need to be installed :

  • Npm
  • Cordova
  • SDK of your target Device(s) (iOS / Android)

Installation

git clone https://github.com/Meshredded/cordova-template-react-hot-loader-with-redux
cd cordova-template-react-hot-loader-with-redux
npm install 

Run:

Web Browser:
npm start 

Then go to : http://localhost:8080.

Android:
cordova platform add android
cordova run android
iOS:
cordova platform add ios
cordova run ios

In this mode, the app will live-reload changes to React components using react-hot-loader and CSS changes using the Webpack CSS loader.

Build the app for production

To build the app without the development hot module reloading server:

npm run build 

This will switch your config.xml file to production mode, build the app bundle to /www using Webpack, and run cordova build for you.

Issues :

For any suggestion you can open an issue here.

Licence :

MIT