38 lines
936 B
Markdown
Raw Normal View History

2021-07-20 14:00:26 +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.
> To run this example you need `@latest` version of Fluence CLI. You can find installation guide [here](https://github.com/fluencelabs/cli).
2021-07-20 14:00:26 +03:00
## Getting started
Go to `src/frontend` folder:
```bash
cd ./src/frontend
```
Install dependencies:
```bash
npm i
```
Run aqua compiler:
2021-07-20 14:00:26 +03:00
```bash
fluence aqua
2021-07-20 14:00:26 +03:00
```
Start the application
```bash
npm start
```
The browser window with `localhost:3000` should open
## Learn more
2021-07-20 14:00:26 +03:00
To learn more, refer to the [documentation page](https://fluence.dev//docs/build/js-client/js-client)