reseau-constellation / Constellation.jl

Client Julia pour Constellation.

Home Page:https://docu.réseau-constellation.ca/avancé/autresLangages/julia.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo Constellation.jl

Client Constellation Julia

Un client Julia pour communiquer avec le réseau Constellation.

Couverture tests Statut tests

Installation

Vous pouvez l'installer ainsi :

pkg> add Constellation

Vous devrez également installer Constellation elle-même, soit l'interface graphique (le plus facile), soit par la ligne de commande (vous aurez besoin de Node.js et pnpm, si vous ne l'avez pas déjà):

$ npm add -g pnpm
$ pnpm add -g @constl/ipa @constl/serveur

Et voilà !

Guide

On vous recommande la documentation complète. Mais en bref, toutes les fonctionnalités de Constellation sont disponsibles.

import Constellation

# D'abord, lancer le nœud local
Constellation.avecServeur() do port

    # 
    Constellation.avecClient(port) do client
        # Écrire tout le reste de son code ici

        # Par exemple :
        idCompte = Constellation.action(client, "obtIdCompte")
        @test occursin("orbitdb", idCompte)

        idBd = Constellation.action(client, "bds.créerBd", Dict([("licence", "ODbl-1_0")]))
        @test occursin("orbitdb", idBd)
    end
end

About

Client Julia pour Constellation.

https://docu.réseau-constellation.ca/avancé/autresLangages/julia.html

License:GNU Affero General Public License v3.0


Languages

Language:Julia 100.0%