Ligne 2 : |
Ligne 2 : |
| | | |
| {{traduction}} | | {{traduction}} |
− | Now that we have node we can then jump in to downloading Node-Red. There is a tutorial on their git for the Pi which can be found [https://github.com/node-red/node-red/wiki/ReadMe-Raspberry-Pi---Advanced here]. But as always I want to take a different route as I want to use git to ensure that we always stay up to date with any new commits to the node-red repository.
| + | Maintenant que nous avons un serveur node.js fonctionnel, nous pouvons nous concentrer sur le téléchargement de Node-Red. Il y a un tutoriel (''en anglais'') sur le GitHub de Node-Red, vous trouverez le tutoriel [https://github.com/node-red/node-red/wiki/ReadMe-Raspberry-Pi---Advanced ici]. Nous allons utiliser {{fname|git}} pour l'installation, cela nous assure de toujours avoir la dernière versions (avec les dernière mise-à-jour). |
| | | |
− | We will now install Git. This allows us to clone git hub repositories. If you have never heard of git hub it is definitely something you should [https://github.com/ look into]. In essence though it is a good way of adding some version control and open source collaboration to your projects.
| + | Nous allons donc installer l'utilitaire {{fname|Git}}. Il permet de faire un clode du dépôt git hub de Node-Red. Vous vous n'avez jamais entendu parlé de GitHub, alors vous devriez prendre [https://github.com/ un moment pour vous y intersser]. Git Hub est une excellente approche pour faire du versionning de votre code source ou pour collaborer ensemble sur vos projets. |
| | | |
− | To install Git carry out the following command.
| + | Saisissez la commande suivante suivante pou installer Git: |
| | | |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
Ligne 12 : |
Ligne 12 : |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | Once Git has installed along with all of its dependencies we want to navigate to our home directory where we will install Node-Red.
| + | Une fois Git installé avec tout ces dépendances, nous allons nous rendre dans le répertoire utilisateur pour y installer Node-Red. |
| | | |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
Ligne 18 : |
Ligne 18 : |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | We will then clone in our Node-Red repository (repo) to the directory with the following command.
| + | Et nous allons y cloner le dépôt Node-Red à l'aide de la commande suivante: |
| | | |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
Ligne 24 : |
Ligne 24 : |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | You will then find that you have a folder cloned into the directory called “node-red”. We will now install everything using “npm” which is known as the Node Package Manager.
| + | Ensuite, vous y trouverez un répertoire nommé "node-red" contenant une copie (un clone) du Git Hub. |
| + | |
| + | Nous allons maintenant installer tous les éléments à l'aide de l'utilitaire "npm" (Node Package Manager / ” which is known as the Node Package Manager. |
| | | |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
Ligne 31 : |
Ligne 33 : |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | After a while everything should run through and install for you. Next we can get Node-Red running, we still have some bits to do but its worth testing first. Make sure you are still in the /home/pi/node-red directory for this one.
| + | Après un processus d'installation plus ou moins long, vous devriez voir la fin de l'installation. |
| + | |
| + | Nous pouvons ensuite tester l'installation Node-Red (il reste encore un peu de travail à faire). Assurez-vous d'être dans le répertoire /home/pi/node-red pour exécuter les commandes suivantes: |
| | | |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |