Install all necessary dependencies by running:
npm installIn order to make the code more consistent we use Prettier code formatter with configuration provided in the .prettierrc file.
Moreover, we integrated ESLint to help with the development process, clean code and to follow the good React and Typescript practices.
In VSCode set:
- Default Formatter: Prettier (firstly install necessary VSCode extension)
- Format On Save: on
- Format On Save Mode: modifications (we don't want to format code of other collaborators)
Install VSCode extension: ESLint. It should work out of the box with the ESLint configuration in .eslintrc.json.
To run app in the development mode you just have to use:
npm run serveIt will run webpack in the server mode with watching changes and then open electron app on each file save.
To run app in the production mode you have to firstly build it:
npm run buildand then start electron app:
npm run electron-startThere are example forest configurations located in the assets directory. To easily insert them into the fire-configurations database, you have to replace every " with \" and then surround the text with ". Next, you have to run the project, create forest configuration in the application, go to http://localhost:31415/docs#/default/get_nodes_api_v1_nodes__get, find node IDs associated with those configuraitons and go to http://localhost:31415/docs#/default/update_node_api_v1_nodes__node_id__put and update the data property for each node ID with the data from the example files.