This project was bootstrapped with Create React App.
To run this swipeable weather card app you can simply run:
This runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Alternatively, you can visit snaphunt-tech-test hosted on heroku to try it live.
Loading the page with chrome-dev-tools on desktop with a mobile emulator or from a mobile web browser enables swipe functionality. When switching between the two, a refresh is required.
This project uses the following dependencies:
- SwipeJS (https://swipe.js.org)
- styled-components (https://www.styled-components.com)
- axios (https://github.com/axios/axios)
- OpenWeatherMap API (https://openweathermap.org/api)
- ReactAnimatedWeather (https://divyanshu013.github.io/react-animated-weather/)
- The app automatically scrolls between each weather card every 3s. To disable or edit this, simply remove or edit
auto={3000}from theSwipecomponent.
Here's what the app looks like on Desktop
Here's what the app looks like on Mobile

