Compiling the LoRa App Server source-code


Hi @shuangcai_huang
I did your procedure completely. And it is quite successfull.
I want to know two things -
1] I am getting above images which can be accessed by port localhost:5000 when I do this, first image is seen as shared.
Next, when I do localhost:5000/#/login it shows the second image and so on for /network-server etc…
I know I have to merge all the webpages one by one, but i am new guy to handle go language & Postgres
How to merge all the files required ?
2] When I do ./lora-app-server after cd build I am facing some issues in connecting Database (postgres)
WARN[0000] storage: ping PostgreSQL database error, will retry in 2s error="pq: password authentication failed for user “root”"
and I also tried with your above procedure
sudo ./lora_app_server --postgres-dns “postgres://loraserver_as:dbpassword@localhost/loraserver_as?sslmode=disable” --jwt-secret XXXXXXXXX --http-tls-cert /etc/lora-app-server/certs/http.pem --http-tls-key /etc/lora-app-server/certs/http-key.pem --db-automigrate --http-bind 0.0.0.0:8080
It didn’t worked for me.

@brocaar Hi sir,
Thank you for the support till now, I have learnt a lot about LoRa with help of your documents.
Now, I am trying to compile and run the LoRa Server Manually. If you have understood what @shuangcai_huang has done then please do help me in completing this too.
sudo ./lora_app_server --postgres-dns “postgres://loraserver_as:dbpassword@localhost/loraserver_as?sslmode=disable” --jwt-secret XXXXXXXXX --http-tls-cert /etc/lora-app-server/certs/http.pem --http-tls-key /etc/lora-app-server/certs/http-key.pem --db-automigrate --http-bind 0.0.0.0:8080

I am trying to understand this above code :point_up_2:

i have understood some of the parts,
jwt-secret is nothing but doing openssl rand -base64 32 and pasting in place of XXXXXXXX

Please help me completing this project.

Thank you,
Sadashiv