You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
To install the back-end and front-end components of the Fidesinnova platform, including both the web app and mobile app, you can follow the steps below. These instructions assume that you have a basic understanding of setting up development environments and are familiar with JavaScript, Node.js, and related technologies.
16
16
17
17
# Step A. Prepare operating system
18
-
To run `iot-server` effectively, the following system specifications are recommended:
18
+
To run `Blockchain-based-IoT-Server` effectively, the following system specifications are recommended:
Open the file with `nano`, then paste the full content of the `firebase-adminsdk.json` file you received.
493
493
494
494
## B.3. Web App Logo
495
-
- Copy your logo in `.png` format with the `logo` name as `logo.png` in `\home\iot-server\backend\uploads` folder on your server.
495
+
- Copy your logo in `.png` format with the `logo` name as `logo.png` in `\home\Blockchain-based-IoT-Server\backend\uploads` folder on your server.
496
496
497
497
## B.4. Device Configuration File
498
498
- Fidesinnova offers a mobile app to control IoT devices that support the MQTT protocol. The device configuration files, which specify the IoT device types, are stored on the IoT server. In this section, we will review how to create a device configuration file on the server. Each device in the configuration file is represented by an image, a title, a type, and its parameters:
499
-
-**fileName**: Refers to the image file that should be placed in the `/iot-server/backend/uploads/device` directory. This image will be displayed in the mobile app (e.g., "ecard.png").
499
+
-**fileName**: Refers to the image file that should be placed in the `/Blockchain-based-IoT-Server/backend/uploads/device` directory. This image will be displayed in the mobile app (e.g., "ecard.png").
500
500
-**title**: The display name for the device (e.g., "E-Card").
501
501
-**type**: Device type identifier (e.g., "E-CARD").
502
502
-**Device Parameters**: Parameters specify data points each device supports. These parameters will be passed to the web app Blockly editor for creating new services.
@@ -506,13 +506,13 @@ To enable mobile notifications on your Node server, follow these steps:
506
506
### B.4.1. Edit the `devices.json` file
507
507
- Create `devices.json` file in the `backend/src/data/` in the project folder
508
508
```
509
-
cd /home/iot-server/backend/src
509
+
cd /home/Blockchain-based-IoT-Server/backend/src
510
510
sudo mkdir data
511
511
cd data
512
512
sudo nano devices.json
513
513
```
514
514
515
-
- Copy the following config in your `devices.json` file if you would like to use zkSensor's devices. Please note that you can edit this file and add your own IoT devices. When you add your new IoT device make sure you upload a `.png` file in `/home/iot-server/backend/uploads/devices`. We hae already copied three `zksensor-ecard.png`, `zksensor-minisensor.png`, and `zksensor-zk-multisensor.png` files in this folder for the following devices.
515
+
- Copy the following config in your `devices.json` file if you would like to use zkSensor's devices. Please note that you can edit this file and add your own IoT devices. When you add your new IoT device make sure you upload a `.png` file in `/home/Blockchain-based-IoT-Server/backend/uploads/devices`. We hae already copied three `zksensor-ecard.png`, `zksensor-minisensor.png`, and `zksensor-zk-multisensor.png` files in this folder for the following devices.
516
516
```json
517
517
[
518
518
{
@@ -591,7 +591,7 @@ sudo nano devices.json
591
591
## B.5. Install Panel Web App for users
592
592
- In `Source_webapp` folder, create `.env` file.
593
593
```
594
-
cd /home/iot-server/web_app/Source_webapp
594
+
cd /home/Blockchain-based-IoT-Server/web_app/Source_webapp
595
595
sudo nano .env
596
596
```
597
597
Enter the following lines in the .env file and replace `YOUR_NODE_NAME` with your actual node name.
To automate the setup and build processes for both the backend and frontend applications, run the `initial_setup.sh` script located in the root directory of the project. This script will handle building both the backend and frontend applications and configuring systemctl services automatically.
634
634
```
635
-
cd /home/iot-server/
635
+
cd /home/Blockchain-based-IoT-Server/
636
636
sudo chmod +x initial_setup.sh
637
637
sudo ./initial_setup.sh
638
638
```
@@ -654,21 +654,21 @@ To automate the setup and build processes for both the backend and frontend appl
654
654
## E.1. Update IoT Server
655
655
- Every time Fidesinnova core development team push a new version of the code on GitHub.
656
656
```
657
-
cd /home/iot-server/
657
+
cd /home/Blockchain-based-IoT-Server/
658
658
sudo git fetch
659
659
sudo git pull
660
660
```
661
661
662
662
- Every time you pull a new version of the server code from GitHub or you make a change to any `.env` files in the system, you should apply the changes to your production server via update script.
663
663
```
664
-
cd /home/iot-server/
664
+
cd /home/Blockchain-based-IoT-Server/
665
665
sudo chmod +x update.sh
666
666
sudo ./update.sh
667
667
```
668
668
## E.2. Backup IoT Server
669
669
- Every time you want to get a backup from your server, you should execute the following script and get your backup file in the 'backups' folder.
0 commit comments