23 lines
494 B
Markdown
23 lines
494 B
Markdown
# u-js-sample
|
|
|
|
A small Node.js command-line example using `universa-core2@2.0.0-alpha.1`.
|
|
|
|
## Initialize and test
|
|
|
|
```sh
|
|
npm ci
|
|
scripts/test-network.sh
|
|
```
|
|
|
|
The test loads `src/universa.json` through `Topology`, connects with `Network`,
|
|
authenticates to every available node, and verifies `sping=spong`. The alpha
|
|
package intentionally has no bundled default topology, so applications must
|
|
provide one explicitly.
|
|
|
|
## Examples
|
|
|
|
```sh
|
|
npm start -- --generate-key
|
|
npm start -- --test-network
|
|
```
|