Constellation.jl

Client Julia pour Constellation.
Author reseau-constellation
Popularity
1 Star
Updated Last
10 Months Ago
Started In
November 2022

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, codeSecret

    # 
    Constellation.avecClient(port, codeSecret) 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

Used By Packages

No packages found.