Okuna-api: Testing app in local network

Created on 28 Jun 2019  ·  2Comments  ·  Source: OkunaOrg/okuna-api

Hi,
I want to test openbook-app in a local network. Currently, openbook-api is running on a VM and is listening to port 0.0.0.0:8000. I also compiled openbook-app and it's is running on an Android device. How I am able to login? Guide me please

Most helpful comment

Go to your api folder and run the following:
pipenv shell
python manage.py create_invite

Copy the invite token that the server replies with.

Now go to the app, click "Create account" and paste https://[SERVER_IP]:8000/api/auth/invite?token=[YOUR_TOKEN_HERE] when it asks for an invite link. Replace [SERVER_IP] with the IP of the server, either a local IP (starts with 192.168.) or your public IP, and [YOUR_TOKEN_HERE] with the token you got from create_invite above.

In the future, it is better if you ask questions in the #contributors channel in the Openspace Slack.

All 2 comments

Go to your api folder and run the following:
pipenv shell
python manage.py create_invite

Copy the invite token that the server replies with.

Now go to the app, click "Create account" and paste https://[SERVER_IP]:8000/api/auth/invite?token=[YOUR_TOKEN_HERE] when it asks for an invite link. Replace [SERVER_IP] with the IP of the server, either a local IP (starts with 192.168.) or your public IP, and [YOUR_TOKEN_HERE] with the token you got from create_invite above.

In the future, it is better if you ask questions in the #contributors channel in the Openspace Slack.

Thank you @Komposten !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lifenautjoe picture lifenautjoe  ·  7Comments

lifenautjoe picture lifenautjoe  ·  10Comments

amirali-asvadi picture amirali-asvadi  ·  3Comments

joenepraat picture joenepraat  ·  3Comments

lifenautjoe picture lifenautjoe  ·  4Comments