Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Testing app in local network #445

Closed
ehsanmqn opened this issue Jun 28, 2019 · 2 comments
Closed

Testing app in local network #445

ehsanmqn opened this issue Jun 28, 2019 · 2 comments

Comments

@ehsanmqn
Copy link

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

@Komposten
Copy link
Member

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.

@lifenautjoe
Copy link
Member

Thank you @Komposten !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants