This is an Expo project created with create-expo-app.
-
Install dependencies
npm install
-
Start the API (MongoDB required)
# ensure MongoDB is running locally or set MONGODB_URI export MONGODB_URI="mongodb://localhost:27017/runmaster" npm run server
-
Start the app (in another terminal)
npm run start
In the output, you'll find options to open the app in a
- development build
- Android emulator
- iOS simulator
- Expo Go, a limited sandbox for trying out app development with Expo
Quick commands:
npm run android # open Android emulator
npm run ios # open iOS simulator (macOS)
npm run web # run web targetYou can start developing by editing files inside the Screens, components, and Lib directories.
When you're ready, run:
npm run reset-projectThis command will move the starter code to the app-example directory and create a blank app directory where you can start developing.
To learn more about developing your project with Expo, look at the following resources:
- Expo documentation: Learn fundamentals, or go into advanced topics with our guides.
- Learn Expo tutorial: Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
Join our community of developers creating universal apps.
- Expo on GitHub: View our open source platform and contribute.
- Discord community: Chat with Expo users and ask questions.
The server exposes a proxy to WeatherAPI current conditions to simplify client usage and hide the API key.
Endpoint:
GET /weather/current?q=<city_or_lat,lon>[&format=json|xml]
Examples:
curl "http://localhost:3000/weather/current?q=Sao%20Paulo" | jq .
curl "http://localhost:3000/weather/current?q=-23.55,-46.63" | jq .
curl -H "Accept: application/xml" "http://localhost:3000/weather/current?q=Lisbon&format=xml"Notes:
- Defaults to JSON; pass
format=xmlfor XML. - Configure your own key by setting
WEATHERAPI_KEYenv var; a development key is used if not set.