TODO: describe the project
The following languages and dependencies need to be installed to be able to run and build the project.
- Go / Golang (min version: v1.16)
Rungo version
to get your current version - Docker (optional)
Only required to cross-compile (see build) - NodeJS
- Wails
To run the program in development mode:
- Open a terminal in the project root directory.
- Start the backend:
wails serve
- Open a second terminal in the project root directory.
- Move to the frontend directory:
cd ./frontend
- Start the frontend:
npm run serve
- Wait for the application to be ready.
- Open a browser and go to localhost:8080.
To build the binary (executable) for your operating system:
- Open a terminal in the project root directory.
- Build the project:
wails build
TODO
- /backend/acquisition
- Contains the backend. (data acquisition, data transformation, etc.)
- /backend/cmd (TODO)
- Contains the code reading arguements passed from the CLI.
(CLI: Command Line Interface) - /backend/config (TODO)
- Contains the code reading the configuration from a file.
- /frontend
- Contains the frontend. (VueJS)
- CLI (/cmd): read args from command line. (see spf13/cobra)
- Config (/config): read configurations from files. ( see spf13/viper)
- Backend (/acquisition)
- Data acquisition: read data received by the RF module.
- Transform data: transform raw data into a human readable form.
- Save data: save transformed data into a file.
- Read data: add the possibility to read data from a file.
- Tests: create unit tests.
- Data acquisition: test functions of the data acquisition.
- Transfrom data: test functions tranforming the data.
- Save data: test functions saving data into files.
- Read data: test functions reading data from files.
- Controller (/controller)
- Frontend (/dashboard)
- Data reception: create the functions receiving the data from the backend.
- Tests: create unit tests.
- Data reception: test the functions used to receive the data from the backend.
- Other: test other functions of the frontend.