examples/js-client-examples/browser-example
renovate[bot] 3c99bf32a7
chore(deps): update dependency @fluencelabs/cli to v0.4.0 (#435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-20 22:38:05 -05:00
..
aqua feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03:00
public feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03:00
src feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03:00
.gitignore feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03:00
.prettierrc.js feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03:00
jest.config.js feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03:00
package-lock.json chore(deps): update dependency @fluencelabs/cli to v0.4.0 (#435) 2023-03-20 22:38:05 -05:00
package.json chore(deps): update dependency @fluencelabs/cli to v0.4.0 (#435) 2023-03-20 22:38:05 -05:00
README.md feat: Update readme files for JS Client examples (#430) 2023-02-23 21:02:15 +03:00
tsconfig.json feat!: Replace old fluence-js with JS Client (#425) 2023-02-21 12:20:51 +03: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.

Getting started

Install dependencies:

npm i

Run aqua compiler in watch mode:

npm run watch-aqua

Start the application

npm start

The browser window with localhost:3000 should open

Learn more

To learn more, refer to the documentation page