Code for app server hosted on Microsoft Azure, written for 2021 NASA Space Apps Challenge: You Are My Sunshine.
- Follow this tutorial to configure your python app for web services.
- Then refer to the steps of this link to set up your python app and enviromnent requirements in the virtual machine.
- Configure the fetch link in our React Native app link to that of Azure Service provides before build, the server should run properly.
- You server and your phone must on the same network in order to test locally.
- First install all the required packages.
pip install -r requirements.txt
- run
python Server.py
- You will find that the server runs on a certain IP, and then you can change the "server" varaible in App.js in our app's file into that IP.
- Use Expo to build your application and test it.
- Voila! Done.