Code Monkey home page Code Monkey logo

react-cordova's Introduction

React Cordova Boilerplate

React Cordova is a ES6 Isomorphic React app using React.js, React Router, Flux, Webpack and Cordova. I wrote on a half day :-) Just for the fun! React Cordova demo

Running

npm install
bower install
npm run serve
open http://localhost:8080 # On OSX

Building

npm run build
cordova platform add ios
cordova run ios

react-cordova's People

Contributors

rgaidot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-cordova's Issues

Ran the repo for android version and this repo has been made 7 years ago

Thanks for nice repo.

I tried this repo and it runs well. Since I use android for ios, I deleted some lines which are used for ios version. Since it made 6 - 7 years ago, many changes has been for built packages.

// app/application.js

import Router from 'react-router';
import Routes from './config/Routes';
import ApplicationStore from './stores/ApplicationStore';
//import '../app/assets/scss/style.scss';
//import '../bower_components/ratchet/dist/css/ratchet.min.css';
//import '../bower_components/ratchet/dist/css/ratchet-theme-ios.min.css';

Router.run(Routes, Router.HistoryLocation, function (Handler) {
  React.render(<Handler />, document.body);

When I typed 'cordova platform add android' for adding android into cordova, widget naming gave errors. So I have changed the widget names.

//config.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
//from <widget id="com.example.react-cordova" version="0.0.1"
//to this below
<widget id="com.example.ReactCordova" version="0.0.1" 
  xmlns="http://www.w3.org/ns/widgets"
  xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>react-cordova</name>

So I ran on browser and on emulator, this works well. Fixes for my version here.

I have found built packages version are past and many vulurabilities by typing npm audit fix. It seems many npm pakcages needed for updating but it seems many things should be edited because it has built 7 years ago.

Issue with AMD module

I did a fresh clone and couldn't load the app on the first try due to:
webpack/webpack#138

I fixed it by adding to webpack.config.js:
..

module: {
noParse: /json-schema/lib/validate.js/,
loaders: [
..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.