mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 02:32:16 +00:00
* 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
38 lines
936 B
Markdown
38 lines
936 B
Markdown
# Getting Started with Fluence
|
|
|
|
This sample project demonstrates how fluence network can be accessed from the browser. As an example it retrieves the timestamp of the current time from the relay node. The project is based on an create-react-app template with slight modifications to integrate Fluence. The primary focus is the integration itself, i.e React could be swapped with a framework of your choice.
|
|
|
|
> To run this example you need `@latest` version of Fluence CLI. You can find installation guide [here](https://github.com/fluencelabs/cli).
|
|
|
|
## Getting started
|
|
|
|
Go to `src/frontend` folder:
|
|
|
|
```bash
|
|
cd ./src/frontend
|
|
```
|
|
|
|
Install dependencies:
|
|
|
|
```bash
|
|
npm i
|
|
```
|
|
|
|
Run aqua compiler:
|
|
|
|
```bash
|
|
fluence aqua
|
|
```
|
|
|
|
Start the application
|
|
|
|
```bash
|
|
npm start
|
|
```
|
|
|
|
The browser window with `localhost:3000` should open
|
|
|
|
## Learn more
|
|
|
|
To learn more, refer to the [documentation page](https://fluence.dev//docs/build/js-client/js-client)
|