In order to get the whole project together, refer to the book's code files and find the folder called Bluetooth Gateway. Copy the folder somewhere on your Raspberry Pi Desktop using a standard USB. Assuming that your downloaded files now rest in the ~/Desktop/BluetoothGateway folder, you should be seeing two folders there. One is gateway and the other is navible. Before moving into the technicalities, make sure that you have all the project dependencies installed. Navigate to your gateway folder and run the following command:
cd gatewaysudo npm install
This will install all project-related dependencies and keep them in the node_modules folder. In order to install the server, use the following command: ...