mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 10:42:16 +00:00
30 lines
753 B
Markdown
30 lines
753 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.
|
|
|
|
## Getting started
|
|
|
|
Install dependencies:
|
|
|
|
```bash
|
|
npm i
|
|
```
|
|
|
|
Run aqua compiler in watch mode:
|
|
|
|
```bash
|
|
npm run watch-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)
|