TheChance101 / beep-beep

Apache License 2.0
652 stars 72 forks source link

The Desktop Client App can't connect to the internet #628

Open RaheemJnr opened 3 months ago

RaheemJnr commented 3 months ago

i keep getting "No internet connection" when i try to login on desktop, even after i bypass the failed state check in the code i still keep getting no internet connection image

RaheemJnr commented 3 months ago

i think the question i should ask is how do i set up the api_gateway locally @ahmednasserzaza or anybody else that can help

muhammadzkralla commented 1 month ago

To run the api_getway locally, you should open the api_gateway module and navigate to the Application.kt file and run the main function.

Application.kt : https://github.com/TheChance101/beep-beep/blob/develop/api_gateway%2Fsrc%2Fmain%2Fkotlin%2Forg%2Fthechance%2Fapi_gateway%2FApplication.kt

This will host the ktor server project on your localhost and the ip address of your machine.

Note: If you are using the virtual phone emulator or your physical phone or any external device that's not the machine you ran the Application.kt file on, you will need to put the ip address of your running machine as the base url and not localhost to access the api.

You can get the ip address of your machine by opening the cmd and typing the ipconfig command.

@RaheemJnr

RaheemJnr commented 1 month ago

Do i need to start all the other microservices???

muhammadzkralla commented 1 month ago

The api_gateway module receives requests, forwards them to the responsible microservice, takes its response, and returns it to the client. Therefore, you will need to run the other microservices as well. Be aware of the URLs of each microservice, which you can find in the APIS.kt file.

RaheemJnr commented 1 month ago

Alright thank you

On Fri, 24 May 2024, 10:01 pm Mohamed Zkrallah, @.***> wrote:

The api_gateway module receives requests, forwards them to the responsible microservice, takes its response, and returns it to the client. Therefore, you will need to run the other microservices as well. Be aware of the URLs of each microservice, which you can find in the APIS.kt https://github.com/TheChance101/beep-beep/blob/develop/api_gateway/src/main/kotlin/org/thechance/api_gateway/util/APIs.kt file.

— Reply to this email directly, view it on GitHub https://github.com/TheChance101/beep-beep/issues/628#issuecomment-2130348053, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZFSRKFJMKBDV5774UTFWTZD6TBNAVCNFSM6AAAAABEQHLCY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGM2DQMBVGM . You are receiving this because you were mentioned.Message ID: @.***>