mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 03:00:18 +00:00
fbfc344abf
* Update examples * Update js-client examples * Add cli to example * Fixes * Update js-client * Update js-client version in js-client examples * PR fixes * Remove marine-js * Update locks * Fix aqua * Remove unused import * Adjust import * Change code comment * Update example structures * Fix quickstart examples * Add aqua command to README * Add marine example * Fix image links * Fixes * Misc fixes |
||
---|---|---|
.. | ||
.fluence/schemas | ||
src | ||
fluence.yaml | ||
README.md |
Getting Started with Fluence
This is a sample Node.js application using Fluence JS Client. It exposes a calculator service written in Typescript which can be accessed from Fluence Network using Aqua language
To run this example you need
@latest
version of Fluence CLI. You can find installation guide here.
Getting started
Go to src/frontend
folder:
cd ./src/frontend
Install dependencies:
npm i
Run aqua compiler:
fluence aqua
Start the Node.js application:
npm start
This should start listening to incoming particles from Fluence Network.
Open another terminal window and go to the example dir. Try interacting with the application by executing aqua function:
fluence run -f 'demoCalculation()'
Learn more
To learn more, refer to the documentation page