Meteor: Difference between revisions

From air
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 72: Line 72:
=Production Deployment=
=Production Deployment=
==With MUP (Meteor Up)==
==With MUP (Meteor Up)==
''Meteor Up (mup for short) is a command line tool that allows you to deploy any Meteor app to your own server.''


Install mup
Install mup
Line 77: Line 78:
npm install -g mup
npm install -g mup
</pre>
</pre>



=Create a package=
=Create a package=
Line 95: Line 95:
{ "serialport": "2.0.2" }
{ "serialport": "2.0.2" }
</pre>
</pre>

Installer le module
<pre>
npm install serialport
</pre>



Ajouter à server/app.js la ligne suivante
Ajouter à server/app.js la ligne suivante
Line 102: Line 108:


=Performance Monitoring=
=Performance Monitoring=


==meteor-ddp-analyzer==
[https://github.com/arunoda/meteor-ddp-analyzer meteor-ddp-analyzer] trace les échanges [[Distributed Data Protocol]] entre le serveur et le browser web.

Dans un terminal, installer et lancer le proxy [[DDP]]
<pre>
sudo npm install -g ddp-analyzer
ddp-analyzer-proxy
</pre>

Dans un terminal, lancer le serveur Meteor
<pre>
export DDP_DEFAULT_CONNECTION_URL=http://localhost:3030
meteor run
</pre>

Naviguer sur http://localhost:3000

==Kadira==
[[Image:KadiraDashboard001.png|200px|right|thumb|Kadira dashboard monitoring]]
[[Image:KadiraDashboard001.png|200px|right|thumb|Kadira dashboard monitoring]]

Kadira is a performance monitoring for [[Meteor]].
Kadira is a performance monitoring for [[Meteor]].


https://kadira.io/#features
https://kadira.io/#features


==Installation==
===Installation===


Créez un compte gratuit via votre id Meteor.
Créez un compte gratuit via votre id Meteor.
Line 119: Line 146:
export KADIRA_APP_SECRET=YOUR_APP_SECRET
export KADIRA_APP_SECRET=YOUR_APP_SECRET
</pre>
</pre>

=Load and Stress Testing=
https://bulletproofmeteor.com/architecture/load-and-stress-testing


=[[Docker]]=
https://bulletproofmeteor.com/architecture/docker-and-meteor

=[[CloudFoundry]]=
https://github.com/cloudfoundry-community/cf-meteor-buildpack

=Clustering=
https://github.com/meteorhacks/cluster


=Books=
=Books=
* Meteor in Action, Mannings, http://www.manning.com/hochhaus/
* Meteor in Action, Mannings, http://www.manning.com/hochhaus/
* Discover Meteor, http://fr.discovermeteor.com
* Discover Meteor, http://fr.discovermeteor.com

=Meteor @ AIR=
* [[IaaS collaboratif avec Docker]] (RICM5 en 2015-2016)
* [[Projets-2015-2016-OpenSmartCampus|OpenSmartCampus]] (RICM5 en 2015-2016)

Latest revision as of 14:01, 25 July 2016

https://www.meteor.com/

Web (server and client) framework.

Includes :

Remark: Meteor only supports i686 and x86_64 for now but ...

Extra:

Quickstart

Doc is here https://docs.meteor.com/#/basic/quickstart

Install Meteor:

curl https://install.meteor.com | /bin/sh

Create and run a new project:

meteor create myapp
cd myapp

Add packages (listed on http://www.atmospherejs.com/)

meteor add coffeescript
meteor add spinner
meteor add accounts-ui accounts-facebook accounts-google accounts-github accounts-twitter


meteor add meteor-platform
meteor add mrt:paypal
meteor add mrt:loading

meteor list 

meteor search paypal
meteor show mrt:paypal

meteor list 

meteor remove accounts-github

meteor list


Launch the app in Meteor

meteor

Browse http://localhost:3000/

Deployment sur le cloud Meteor

meteor deploy myapp.meteor.com

Meteor on Raspberry Pi

http://www.ianbuildsapps.com/running-meteor-js-on-raspbian-on-the-raspberry-pi/

Production Deployment

With MUP (Meteor Up)

Meteor Up (mup for short) is a command line tool that allows you to deploy any Meteor app to your own server.

Install mup

npm install -g mup

Create a package

Use NPM modules

Ajouter le package meteorhacks:npm

meteor add meteorhacks:npm


Créer un nouveau fichier ./package.json avec le contenu (la version doit être exacte : pas d’expression npm du type ^ >= ..)

{ "serialport": "2.0.2" }

Installer le module

npm install serialport


Ajouter à server/app.js la ligne suivante

var SerialPort = Meteor.npmRequire('serialport');

Performance Monitoring

meteor-ddp-analyzer

meteor-ddp-analyzer trace les échanges Distributed Data Protocol entre le serveur et le browser web.

Dans un terminal, installer et lancer le proxy DDP

sudo npm install -g ddp-analyzer
ddp-analyzer-proxy

Dans un terminal, lancer le serveur Meteor

export DDP_DEFAULT_CONNECTION_URL=http://localhost:3030
meteor run

Naviguer sur http://localhost:3000

Kadira

File:KadiraDashboard001.png
Kadira dashboard monitoring

Kadira is a performance monitoring for Meteor.

https://kadira.io/#features

Installation

Créez un compte gratuit via votre id Meteor.

meteor add meteorhacks:kadira
export KADIRA_APP_ID=YOUR_ID 
export KADIRA_APP_SECRET=YOUR_APP_SECRET

Load and Stress Testing

https://bulletproofmeteor.com/architecture/load-and-stress-testing


Docker

https://bulletproofmeteor.com/architecture/docker-and-meteor

CloudFoundry

https://github.com/cloudfoundry-community/cf-meteor-buildpack

Clustering

https://github.com/meteorhacks/cluster

Books

Meteor @ AIR