Pour développer une application Cozy dans ce hackathon, et pour tester pendant le développement, nous vous proposons d'utiliser votre propre cozy.
Vous aurez tout de même besoin d'installer les outils suivants :
Install Git
The first step is obviously to install the development dependencies. Git is the SCM we use at Cozy, and if you don’t know how to use it yet, don’t worry: we will give example commands in the following tutorial.
Install node
Installing Node.js on your local environment is necessary to run your app and use cozy-dev. Cozy runs well on Node.js v0.10 and Node.js 4.3, and you should install one of those versions.
You can find detailed instructions of installation on the official page.
Install cozy-sdk
This is a tool to quickly start an application for tests within your cozy.
Install :
npm install -g cozy-sdk
Pour tester votre application, il vous suffira d'ouvrir un terminal, de vous rendre dans le répertoire de votre application et de lancer la commande (avec l'url de votre cozy !) :
cozy-sdk . --remote https://yourcozy.cozycloud.cc
Pour écrire cette application rendez-vous sur le tuto !! https://dev.cozy.io/clientsideapp.html
Mais attention, au paragraphe "1.
Serve local files through a proxy inside the VM" ; utilisé la commande ci-dessus
cozy-sdk . --remote https://yourcozy.cozycloud.cc .
(Car il y a un bug sur cozy-dev proxify : / )
-
Pour obtenir des données test, installez l'application suivante sur votre Cozy :