The goal of the developer exercise is to take a quick dive into a React Native to build a ios/android application which could show our weather.
- Show current city's current weather and future weather based on GPS.
- User could login and store their watch list.
- User could share one city's weather to others by email.
- connect to DB (NoSQL, SQL, up to you)
- deal with signin and signup.
- deal with user's watch list
- fetch weather from another source and store the weather data to redis. The data should be expired after 1 hour. If one city's weather is cached, no need to fetch weather from weather source again.
Bonus: GraphQL
- in /back npm i && npm start
- in /app yarn && yarn react-native run-android
- Dependences: Redis in local (redis-server need to be launch)
- In localhost with real device u need to change the API_URL in app/config.js with your own ip (ifconfig | grep inet) and update the file "android/app/src/main/res/xml/network_security_config.xml", -> add your own ip. This step is necessary for call the local API with your device
- Project was developed with an android device