This project aims to create a simple weather application that utilizes the Mockoon tool to simulate a local weather server.
- Fetch weather data from the local mock server every hour (
"timestep": "1h"
) - Display data in a list with the following information:
- Wind speed
- Temperature
- Feels like temperature
- "Pull to refresh" functionality to update data
- Error handling
- Unit tests
-
Clone the repository:
git clone https://github.com/Khaad/rnNimbleways.git cd rnNimbleways
-
Install the dependencies:
npm install
-
Start the Mockoon mock server:
download Mockoon and use ./mockoon/weather_mockoon (5).json environment
-
Run the application:
npx react-native run-android
-
Current weather data will be displayed in a list.
-
Pull down on the list to refresh the data.
-
In case of errors, an error message will be displayed.
Unit tests are included in the project to ensure the application functions correctly. To run the unit tests:
bash npm test
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.
This project is licensed under the MIT License - see the LICENSE file for details.