QmlWeb/Qml.js/Workflow

< QmlWeb‎ | Qml.js
Jump to: navigation, search

This site describes the workflow we have in mind for a developer using QmlWeb.

noframe
 
Warning
The Qml.js Compiler is in a very early state — this site collects ideas and all of it might change completely.


As an example, we use cmake as build system and git as version control system, but the workflow would be the same for every build system and vcs you use.


Setup: You have a checkout of your code locally available. You develop and test locally. Moreover, you have an http-webspace connected via nfs, ftp, sftp or similar as your production system. You don't have rights, to install software on the server.

You need:

  • The Qml.js Compiler installed on your local computer
  • A webserver running on your local computer

Your worklow:

  • Write your code
  • Create a CMakeLists.txt
  • Create and enter a build/ directory
  • Call cmake .. (maybe containing info like -DCMAKE_INSTALL_DIR or -DQMLWEB_UPLOAD_URL — if not already in the CMakeLists.txt)
  • Call make
  • Test locally
  • Edit
  • Call make
  • Test again
  • When done, call make install

Setup: You have a checkout of your code locally available. You develop and test locally. Moreover, you have a root server available as your production system. You want the code to be compiled on the fly on the server.

You need:

  • The Qml.js Compiler installed on your local computer
  • A webserver running on your local computer
  • The Qml.js Compiler installed on the server
  • A Git hook to recognize code updates
  • The hook needs to
    • create and enter a clean build dir
    • call cmake -DCMAKE_INSTALL_DIR=/srv/somewhere ..
    • make
    • make install

Your workflow:

  • Write your code
  • Create a CMakeLists.txt
  • Create and enter a build/ directory for local testing
  • Call cmake ..
  • Call make
  • Test locally
  • Edit
  • Call make
  • Test again
  • When done, call git push

Setup: You have a checkout of your code locally available. You develop locally, but have an http-webspace connected via nfs, ftp, sftp or similar, that is to be used as your testing evironment. You don't have rights, to install software on the server.

You need:

  • The Qml.js Compiler installed on your local computer

Your worklow:

  • Write your code
  • Create a CMakeLists.txt
  • Create and enter a build/ directory
  • Call cmake .. (maybe containing info like -DCMAKE_INSTALL_DIR or -DQMLWEB_UPLOAD_URL — if not already in the CMakeLists.txt)
  • Call make
  • Call make install
  • Test remotely
  • Edit
  • Call make
  • Call make install
  • Test again

This page was last modified on 21 July 2015, at 08:29. Content is available under Creative Commons License SA 4.0 unless otherwise noted.