An open API service indexing awesome lists of open source software.

https://github.com/reseau-constellation/constellation.jl

Client Julia pour Constellation.
https://github.com/reseau-constellation/constellation.jl

constellation donnees-distribuees donnees-ouvertes ipfs julia orbit-db sfip

Last synced: 4 months ago
JSON representation

Client Julia pour Constellation.

Awesome Lists containing this project

README

          



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](https://réseau-constellation.ca/t%C3%A9l%C3%A9chargements) (le plus facile), soit par la ligne de commande (vous aurez besoin de [Node.js](https://nodejs.org/fr/) et [pnpm](https://pnpm.io/), si vous ne l'avez pas déjà):

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

Et voilà !

## Guide
On vous recommande la [documentation complète](https://docu.réseau-constellation.ca/avanc%C3%A9/autresLangages/julia.html). Mais en bref, toutes les fonctionnalités de Constellation sont disponsibles.

```julia
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
```