2023-02-23 18:02: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
2023-12-12 11:46:57 +00:00
> To run this example you need `@latest` version of Fluence CLI. You can find installation guide [here](https://github.com/fluencelabs/cli).
2023-02-23 18:02:15 +00:00
## Getting started
2023-12-12 11:46:57 +00:00
Go to `src/frontend` folder:
```bash
cd ./src/frontend
```
2023-02-23 18:02:15 +00:00
Install dependencies:
```bash
npm i
```
2023-12-12 11:46:57 +00:00
Run aqua compiler:
```bash
fluence aqua
```
2023-02-23 18:02:15 +00:00
Start the Node.js application:
```bash
npm start
```
This should start listening to incoming particles from Fluence Network.
2023-12-12 11:46:57 +00:00
Open another terminal window and go to the example dir. Try interacting with the application by executing aqua function:
2023-02-23 18:02:15 +00:00
```bash
2023-12-12 11:46:57 +00:00
fluence run -f 'demoCalculation()'
2023-02-23 18:02:15 +00:00
```
## Learn more
To learn more, refer to the [documentation page ](https://fluence.dev//docs/build/js-client/js-client )