mirror of
https://github.com/fluencelabs/examples
synced 2025-04-24 18:22:15 +00:00
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