Home/Projects/ Project - Weather App/
Home/Projects/Project - Weather App/

Weather App

css
js
react
api
Check daily weather in your city or in any place in the world. Include details such as if it's snowing, raining, and craft your own Weather App.
Designed by
Milena Ulman
Difficulty
It's free and always will. You can use this design for your portfolio/website without any limitations. Additionally, you can share the completed project wherever you want.

Read me first

The goal of this project is to build a Weather App similar to the design above.
Technologies & tools will be proposed down below but feel free to use different ones if you're more familiar with them. Have fun along the way.
Project requirements
  • If not using CodeSandbox, boilerplate the application with CRA.
  • Get your free API key from OpenWeather API, (or any similar weather API you can find). Study the documentation before starting implementation.
  • The website looks similar to the design (Desktop and Mobile) and is available for users through a link.
  • On the initial page load, weather for either hardcoded city (e.g. London) is shown or geolocation logic checks which city should be presented.
  • Users can check the weather of cities using the search bar, request to the API should trigger after entering a minimum of 2 characters and be debounced to prevent too many requests at once. (no enter click, listen to keypress and fetch data after e.g. 300 milliseconds delay, try to avoid fetch on the first character typed in)
  • When users use the search bar, current weather should be replaced by the search result, if the city couldn't be found, an appropriate message to the user shall be displayed.
  • Users can change between Celsius and Fahrenheit temperatures to get more adequate results.
  • Handle loading and errors in the code appropriately. (handle error first, then loading, then data)
Additional requirements
  • To avoid working on a real API and burning its daily limits, implement a mock server first (try to recreate original schema/data format), code the app, and when it'll be ready switch to the real Weather API (e.g. OpenWeather) for final testing if all works nicely together.
  • Implement more fields from the API, explore, discover what's available and make it as robust as it's possible. Use all the data! 🔥
  • Add API tests to your code, using e.g. jest.
  • Add e2e tests to your code, using e.g. cypress.

How to start

In most cases, CodeSandbox will be the best place for starting out rapidly.
You could also use an IDE, VSCode for example, and create e.g. a GitHub repository with custom deployment. More about it in the "Build & Deploy" section.
First steps
  • Be Agile! Plan your work upfront either with Scrum or Kanban by creating e.g. Trello board for this project.
  • Open the design by clicking the button under the above image.
  • Get familiar with design, it contains all the assets (except icons sometimes - use e.g. fontawesome), CSS properties you'll need to use.
  • After deciding on either CodeSandbox or GitHub repo, set your project with initial files, directory structure (your own preference).
  • Nothing will stop you now. Don't forget to share a link once you completed the project!

Technologies & Tools

Stuck, can't progress?

Take a break, think about all the pieces you need to build for this project.
I'll be happy to assist you, try out my Mentorship or/and connect to a study group on Slack where I and mentees will be able to answer your questions.

Build & Deploy

If you decided on CodeSandbox, there should be a "Share" button that you can use as a link for your completed project.
Otherwise, for simple, static projects (HTML, CSS, JavaScript) you can try GitHub Pages. For more complex deployments (React, etc.), Netlify or Vercel should be good. If the project has a little bit of Backend, try Heroku for it.

Review & Feedback

Before you share the completed project, feel free to post it on Slack for review, someone might pick it up and give honest feedback, maybe even propose code improvements. After all, we want to improve as Developers.

Share your solution

It would be amazing if you can tweet @BigsonDev with the link to the completed project and/or GitHub repo. All the mentees would love to see what you've built (and me too).

Wall of Fame

To get in the Wall of Fame, I'll need a couple of things.
  • Link to the completed project (CodeSandbox link or completed project link with GitHub repo link).
  • Your nickname. (brand name, something spicy 🔥)
  • Portfolio/Website/GitHub link you would like to share with the world.
If I missed your solution, please, contact me via the Reach Out form.
I can't promise every solution will land on the Wall of Fame, it needs to be neat and crispy.
spread the word
Do you think this project is cool? Share it with someone!