dev env is ready

Niko 12 months ago
parent 287d12a589
commit 49b9e61a59
  1. 6
      README.md
  2. 8
      ng-app/README.md
  3. 7
      ng-app/src/App.svelte
  4. 48
      pnpm-lock.yaml
  5. 3
      pnpm-workspace.yaml

@ -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

@ -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

@ -10,14 +10,17 @@
-->
<script lang="ts">
import * as ng2 from "ng-sdk-js";
import Router from "svelte-spa-router";
import Home from "./routes/Home.svelte";
import Test from "./routes/Test.svelte";
import NotFound from "./routes/NotFound.svelte";
ng2.test();
if (import.meta.env.NG_APP_WEB) {
import("ng-sdk-js").then((ng2) => {
ng2.test();
});
}
const routes = {
// Exact path

@ -2,6 +2,9 @@ lockfileVersion: 5.4
importers:
.:
specifiers: {}
ng-app:
specifiers:
'@popperjs/core': ^2.11.8
@ -61,6 +64,19 @@ importers:
vite-plugin-svelte-svg: 2.2.1_svelte@3.59.1+vite@4.3.9
vite-plugin-wasm: 3.2.2_vite@4.3.9
ng-sdk-js/pkg:
specifiers: {}
ngone/web:
specifiers:
'@sveltejs/vite-plugin-svelte': ^2.0.4
svelte: ^3.58.0
vite: ^4.3.9
devDependencies:
'@sveltejs/vite-plugin-svelte': 2.4.1_svelte@3.59.1+vite@4.3.9
svelte: 3.59.1
vite: 4.3.9
packages:
/@alloc/quick-lru/5.2.0:
@ -1814,6 +1830,38 @@ packages:
vite: 4.3.9_@types+node@18.16.16
dev: true
/vite/4.3.9:
resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
peerDependencies:
'@types/node': '>= 14'
less: '*'
sass: '*'
stylus: '*'
sugarss: '*'
terser: ^5.4.0
peerDependenciesMeta:
'@types/node':
optional: true
less:
optional: true
sass:
optional: true
stylus:
optional: true
sugarss:
optional: true
terser:
optional: true
dependencies:
esbuild: 0.17.19
postcss: 8.4.24
rollup: 3.23.0
optionalDependencies:
fsevents: 2.3.2
dev: true
/vite/4.3.9_@types+node@18.16.16:
resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==}
engines: {node: ^14.18.0 || >=16.0.0}

@ -1,3 +1,4 @@
packages:
- ng-sdk-js/pkg
- ng-app
- ng-app
- ngone/web
Loading…
Cancel
Save