Rust implementation of NextGraph, a Decentralized and local-first web 3.0 ecosystem
https://nextgraph.org
byzantine-fault-tolerancecrdtsdappsdecentralizede2eeeventual-consistencyjson-ldlocal-firstmarkdownocapoffline-firstp2pp2p-networkprivacy-protectionrdfrich-text-editorself-hostedsemantic-websparqlweb3collaboration
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
47 lines
1.0 KiB
# ngnet
|
|
|
|
This server is used by NextGraph infrastructure for redirects, and for authentication on third-party web apps. It also serves the API for getting the list of Broker Service Providers.
|
|
And should eventually provide the TextCode API.
|
|
|
|
## Install
|
|
|
|
```
|
|
cd web
|
|
npm install -g pnpm
|
|
pnpm install
|
|
```
|
|
|
|
## Dev
|
|
|
|
compile the 2 helpers, in dev mode
|
|
|
|
```
|
|
pnpm -C ../net-auth run builddev
|
|
pnpm -C ../net-bootstrap run builddev
|
|
```
|
|
|
|
```bash
|
|
cd web
|
|
pnpm run dev --host
|
|
|
|
# In another terminal... in the folder ngnet
|
|
cargo watch -c -w src -x run
|
|
```
|
|
|
|
> Currently, the ngnet server api is listening on http://127.0.0.1:3033 only which might cause you trouble with Android emulator (hardcoded in `main.rs`).
|
|
> If you need to test from a (virtual) android device, you can use adb to tunnel the connection like: [`adb reverse tcp:3033 tcp:3033`](https://justinchips.medium.com/proxying-adb-client-connections-2ab495f774eb).
|
|
|
|
## Prod
|
|
|
|
```
|
|
pnpm -C ../net-auth run build
|
|
pnpm -C ../net-bootstrap run build
|
|
pnpm -C ./web run build
|
|
cargo build -r
|
|
```
|
|
|
|
## run
|
|
|
|
```
|
|
../target/release/ngnet
|
|
```
|
|
|