On a Phone/Tablet
journeys-admin
-
Find the IP address on your machine.
-
On Mac, go to Settings -> Network -> Wifi. Next to the network you're connected to, click "Details". You should see your IP address at the bottom.
-
On Windows, go to Settings -> Network and Internet -> Wifi. Scroll down to see your IPv4 Address, which is your IP address.
-
-
Go to
apps/journeys-admin/.env
, and find theNEXT_PUBLIC_GATEWAY_URL
variable.- Change the value to
http://[YOUR_IP_ADDRESS]:4000/
. For example, if your IP address was123.4.5.6
, then set the variable tohttp://123.4.5.6:4000/
- Change the value to
-
Start the server on your machine by running
nf start
&nx serve journeys-admin
-
On your phone/tablet, open a browser
- Navigate to
http://[YOUR_IP_ADDRESS]:4200
- Navigate to
journeys
-
Find the IP address on your machine(same steps as above).
-
Go to
apps/journeys/.env
, and find theNEXT_PUBLIC_ROOT_DOMAIN
variable.- Change the value to
[YOUR_IP_ADDRESS]:4100
. For example, if your IP address was123.4.5.6
, then set the variable to123.4.5.6:4100
- Change the value to
-
Start the server on your machine by running
nf start
&nx serve journeys
- If you had these running already, restart them.
-
On your phone/tablet, open a browser
- Navigate to
http://[YOUR_IP_ADDRESS]:4100
- Navigate to
Inspecting on iPhone or iPad (Mac only)
-
Enable inspecting on your device by following these steps
-
Plug your device into your Mac
-
On your Mac, open Safari
-
Go to develop -> your iPhone/iPad -> localhost link
Common issues
Sometimes, errors similar to these may appear when trying to run the server:
ApolloError: connect ECONNREFUSED...
ApolloError: cannot connect to server...
In most situations, cancelling and re-running nf start
and nx serve [PROJECT-NAME]
should fix the issue. If it does not, try the following:
- Run
npm i
, then restart the server. - If that doesn't work, re-run the commands at 3. Microservice Databases. Then restart the server.