Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 protected
  • release/runtime-800 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
40 results

node

  • Clone with SSH
  • Clone with HTTPS
  • Cesium logo

    Cesium

    Unhosted webapp client for Duniter network.

    Try it at: http://cesium.duniter.fr

    Installation

    On desktop computer

    To use Cesium from your desktop computer :

    • Download the latest release. Choose the web packaging (cesium-vX.Y.Z-we.zip);
    • Unpack in a empty directory;
    • Open the index.html file in a web browser.

    On web server

    Cesium can be easily installed on most web server.

    Installation script

    For Linux distribution, a installation script could be used to:

    • Download the latest release
    • Unpack archive into the directory ./cesium. Existing files will be override.
    curl -kL https://raw.githubusercontent.com/duniter/cesium/master/install.sh | bash

    or:

    wget -qO- https://raw.githubusercontent.com/duniter/cesium/master/install.sh | bash

    Note: You may need root permission to write files. If so just replace | bash with | sudo bash.

    Yunohost package

    There is a package for YunoHost self-hosting distribution.

    Configuration

    To change default configuration:

    • Edit the file config.js, and set default properties:
    angular.module("cesium.config", [])
    .constant("csConfig", {
    	"timeout": 4000,
    	"cacheTimeMs": 60000,
    	"useRelative": true,
    	"timeWarningExpireMembership": 5184000,
    	"timeWarningExpire": 7776000,
    	"useLocalStorage": false,
    	"rememberMe": false,
    	"showUDHistory": false,
    	"node": {
    		"host": "test-net.duniter.fr",
    		"port": "9201"
    	},
    	"plugins": {
    		"es": {
    			"enable": "false",
    			"host": "test-net.duniter.fr",
    			"port": "9203"
    		}
    	},
    	"version": "0.2.6",
    	"build": "2016-08-25T07:16:49.361Z",
    	"newIssueUrl": "https://github.com/duniter/cesium/issues/new?labels=bug"
    });
    • Configure a Duniter node:

      • set node.host and node.port to the default node address.
    • Configure the optional extension for ElasticSearch Duniter4j node

      • set plugins.es.host and plugins.es.port to the default ES node address.

      • set plugins.es.enable with [true|false] to change the default extension state.

      • To remove the extension (and not only disable by default): remove all content inside the plugins tag. Users will NOT be able to enable the extension.

    License

    This software is distributed under GNU GPLv3.

    Development Guide

    Prerequisite

    To build Cesium, you will have to:

    • Installing nvm
      wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
    • Configure NodeJS to use a version 5:
      nvm install 5 
    • Installing nodejs build tools:
       npm install -g bower gulp ionic@1.7.16 cordova
    • Installing other build dependencies:
     sudo apt-get install build-essential

    Source code

    • Getting source and installing project dependencies:
      git clone https://github.com/duniter/cesium.git
      cd cesium
      npm install
      bower install
    • Installing Cordova plugins
      ionic state restore

    Build environment

    • To configure your build environment :

      • Add your environment config into app/config.json

      • Update default configuration, using the command:

      gulp config --env <your_env_name> 

    This will update the configuration file used by cesium, at www/js/config.json.

    Compile and launch

    • Compiling and running Cesium:
      ionic serve

    Best pratices

    Cesium could be run on phone devices. Please read performance tips on AgularJS + Ionic before starting to contribute. Read also Angular performance for large applicatoins.