Go to file
Pavel Murygin 832ca441a6 Add readme
2022-02-05 01:44:11 +03:00
aqua Add Fluence-related stack 2022-02-04 18:37:40 +03:00
src Add additional comments 2022-02-05 01:03:32 +03:00
.gitignore Add Fluence-related stack 2022-02-04 18:37:40 +03:00
.prettierrc.js Intialize empty npm project w/ TS support 2022-02-04 15:04:58 +03:00
LICENSE Intialize empty npm project w/ TS support 2022-02-04 15:04:58 +03:00
package-lock.json Update dependnecies 2022-02-04 22:47:09 +03:00
package.json Update dependnecies 2022-02-04 22:47:09 +03:00
README.md Add readme 2022-02-05 01:44:11 +03:00
tsconfig.json Intialize empty npm project w/ TS support 2022-02-04 15:04:58 +03:00

Moscow blockchain hackathon tutorial

Template for FluenceJS applications running on nodejs.

Useful resources:

Prerequisites

nodejs v16.04+ installed

Installation

To install dependencies:

npm i

Building and running

To start application:

npm start

The start script will compile the aqua code and run the index.ts file using ts-node

It might be useful to have continuous aqua files recompilation on each file save (e.g to have shorted dev feedback cycles). To do so execute:

npm run watch-aqua

For single recompilation execute:

npm run compile-aqua

Project structure

All aqua code is placed in aqua directory. The TypeScript files are located in src (by aqua) directory as usual. The compiled (by aqua) TypeScript code goes into src/_aqua directory. This one should (and in fact is) be gitignored.

package.json contains some useful scripts to work with aqua compiler.

Using FluenceJS in browser

You are free to use the UI framework of your choosing. Bootstrap the application and then install the same dependencies and set up the compiler. You can also refer to the related documentation section. Also you need to configure the http server, hosting you application code to serve additional files. You can read about it in the (documentation)[https://doc.fluence.dev/docs/fluence-js/4_run_in_browser-1]