How to make a Personal Single Page Application with Cozy

  • 1,149 views
Uploaded on

This is a small tutorial explaining how to develop your application for Cozy Cloud in a painless way. …

This is a small tutorial explaining how to develop your application for Cozy Cloud in a painless way.
https://cozycloud.cc


Talk performed @ LyonJS Meetup, April 2013

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,149
On Slideshare
0
From Embeds
0
Number of Embeds
13

Actions

Shares
Downloads
1
Comments
0
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. a personal single page applicationwith cozy
  • 2. Part Iunder the hood
  • 3. technos involvedLanguage: coffeescript  Frontend: backbone, stylus, brunch  Backend: compound, jugglingdb  
  • 4. prerequisiteNode.jsNpmVagrant 1.0.7Virtualbox
  • 5. dev environment in a virtual machineTo set up a development you have to start the official Cozy Cloud virtual machine, a Vagrant box NB: Vagrant is a tool for developers to   simulate a production environment.
  • 6. required modules (all in the vm)CouchDb (Document Database)Whoosh Server (data indexer)Redis (Key Value Store)Cozy stack (controller, data-system, home,proxy)
  • 7. cozy data systemProxy for persistence and indexationManages app permissionsPublishes changes through Redis
  • 8. cozy controllerSpawn and stop appsBased on Haibu augmented with:  - App directory configurable- Brunch build after deployment- Light update (git pull + npm install)- Later: python support  - Later: client only application support  
  • 9. cozy home and proxyHome is the UI for the ControllerProxy manages authentication and routing
  • 10. Part IItutorial
  • 11. init dev environmentnpm install cozy -gcozy dev:initcozy dev:start
  • 12. init your appcozy new my-app --github me
  • 13. answer questionsCreate repo my-app for user me...Github password:Cozy Url:https://me.cozycloud.cc/Creating the project structure...Cloning into my-app...
  • 14. Hack...# first terminal: build clientcd my-app/clientbrunch w# second terminal: run servercoffee server.coffee
  • 15. then deploy!cozy deploy
  • 16. Need assistance? Well be glad to help:  IRC: #cozycloud (freenode.net)   https://forum.cozycloud.cc contact@cozycloud.cc
  • 17. Part IIIdemo
  • 18. a talk by...contact@cozycloud.cchttps://blog.cozycloud.cchttps://twitter.com/mycozycloudCrédits photos Flickr: alexbrn, tdm911License Creative Commons by-3.0