Kickstart a project with Meteor, Mantra, React and FlowRouter fast!
- git clone https://github.com/mantrajs/kickstart-mantrajs-webpack.git
- cd kickstart-mantrajs-webpack
- npm install
- meteor
You can try other kickstart projects with ReactRouter, FlowRouter or Redux.
Mantra prefers to use stateless (bare) react components. These components do not support HMR. If you want to use HRM, you need to use standard React components:
// NO support for HRM
const Navigations = () => (
<div>
<b> Navigations: </b>
</div>
);
// FULL Support for HRM
class NewPost extends React.Component {
render() {
return <div>Text</div>;
}
}
You can use meteor run, meteor build, mup or anything working with Meteor.
meteor run --production
meteor build .
mup deploy
You need to do those 3 steps to make it works with iOS or Android:
-
Add the platform to your Meteor project
meteor add-platform ios meteor add-platform android
-
Allow access to your dev server in your
/mobile-config.js
file:App.accessRule('http://192.168.1.100:3500/*');
-
Replace localhost by your local ip address in
webpack.json
.