From 49b9e61a594837f4ebcb8be7dc063810b0f78215 Mon Sep 17 00:00:00 2001 From: Niko Date: Sun, 4 Jun 2023 00:11:30 +0300 Subject: [PATCH] dev env is ready --- README.md | 6 +++--- ng-app/README.md | 8 ++++++++ ng-app/src/App.svelte | 7 +++++-- pnpm-lock.yaml | 48 +++++++++++++++++++++++++++++++++++++++++++ pnpm-workspace.yaml | 3 ++- 5 files changed, 66 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c90e419..aa5f7a9 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,10 @@ The crates are organized as follow : - stores-lmdb : lmdb backed stores - ngcli : CLI tool to manipulate the repos - ngd : binary executable of the daemon (that can run a broker, verifier and/or Rust services) -- ngone : server for nextgraph.one (boostrap into the right app) -- ng-sdk-js : contains the JS SDK, with example apps: web app, react app, or node service. -- ng-app : all the native apps, based on Tauri, and the web app. - ng-wallet : keeps the secret keys of all identities of the user in a safe wallet +- [ng-sdk-js](ng-sdk-js/README.md) : contains the JS SDK, with example apps: web app, react app, or node service. +- [ng-app](ng-app/README.md) : all the native apps, based on Tauri, and the web app. +- [ngone](ngone/README.md) : server for nextgraph.one (boostrap into the right app) ### Run diff --git a/ng-app/README.md b/ng-app/README.md index 910e521..e1f03bc 100644 --- a/ng-app/README.md +++ b/ng-app/README.md @@ -6,6 +6,14 @@ All the apps are using an embedded WebView that renders a Svelte app. ## Install +prerequisites: compile the local SDK + +``` +cd ../ng-sdk-js +wasm-pack build --target bundler +cd ../ng-app +``` + ``` cargo install tauri-cli --version "^2.0.0-alpha" npm install -g pnpm diff --git a/ng-app/src/App.svelte b/ng-app/src/App.svelte index 79c3155..66c12d4 100644 --- a/ng-app/src/App.svelte +++ b/ng-app/src/App.svelte @@ -10,14 +10,17 @@ -->