Emphasis for this assignment was put on getting the basic functionality outlined in the project document up and running: Allowing the user to fetch weather data from the Open Weather API for the 3 cities provided in the mock up and displaying it to them in a user friendly way.
If this was real production code, there would still be a lot of work to be done, including the following:
- Storing the API key in an env variable instead of hardcoding
- Updating dates to display in timezone of city instead of local timezone
- Installing a CSS preprocessor like Sass or Less
- More organized / structure CSS
- Styling fine tuning / polish
- Loader animations
- Better day long weather description
- Defensive coding for bad data received from API
- Search functionality
This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lint