examples/js-client-examples/browser-example
Akim fbfc344abf
chore(js-client): Update and restructure examples [fixes DXJ-454] (#464)
* 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
2023-12-12 18:46:57 +07:00
..
.fluence/schemas chore(js-client): Update and restructure examples [fixes DXJ-454] (#464) 2023-12-12 18:46:57 +07:00
src chore(js-client): Update and restructure examples [fixes DXJ-454] (#464) 2023-12-12 18:46:57 +07:00
fluence.yaml chore(js-client): Update and restructure examples [fixes DXJ-454] (#464) 2023-12-12 18:46:57 +07:00
README.md chore(js-client): Update and restructure examples [fixes DXJ-454] (#464) 2023-12-12 18:46:57 +07:00

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.

Getting started

Go to src/frontend folder:

cd ./src/frontend

Install dependencies:

npm i

Run aqua compiler:

fluence aqua

Start the application

npm start

The browser window with localhost:3000 should open

Learn more

To learn more, refer to the documentation page