Giter VIP home page Giter VIP logo

icwe2017tutorial's Introduction

liquid.js

Liquid Web application framework

Visit also our Website http://liquid.inf.usi.ch/

Installation

Make sure that node.js (minimum version v6.6.0) and npm (minimum version v3.10.9) are installed on your computer.

node --version
npm --version

If you do not have them installed, you can find the install packages here: https://nodejs.org/it/

After you checkout the folder you have to install the dependencies. The automatic installation requires bower:

npm install -g bower

Once you installed bower:

npm install

Finally you can start liquid.js

npm start

Configuration of liquid.js server side

The folder applicationTemplate already contains the You can create your own application folder complying with the following skeleton:

----- application
  
  ┖ ----- public
  	┖ ----- components
	 		┖ ----- Your liquid-component.*.html files
  
  	┖ ---- ui
	 		┖ ----- Your liquid-ui.*.html files
  
  ┖ ----- routing.js
  ┖ ----- socketHandlers.js

Open and modify your config.js file as follow:

var config = {
	applicationFolder: 'applicationTemplate/',

	server: {
		port: 8888,
		publicPort: 8888,
		signalingRoute: 'signaling',
		host: 'localhost'
	},

	client: {
		strategy: 'full_graph',
		useRoutingTable: true,
		webrtc: true
	}
}

Create your own component

  • create a new file following this naming rule liquid-component-[componentName].html
  • use the following skeleton in order to create your new liquid-component, make sure to change [componentName] to your componentName (the same componentName appearing in the file name)
<dom-module id="liquid-component-[componentName]">
  <template></template>
  <script>
    Polymer({
      is: 'liquid-component-[componentName]',
      behaviors: [LiquidBehavior]
    });
  </script>
</dom-module>

icwe2017tutorial's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.