Skip to content

(Front End) - Simple weather application built with the MERN stack that displays the current weather. Features user authentication to automatically display the weather for your set city.

License

Notifications You must be signed in to change notification settings

PhilipBDev/MERN-Weather-App-CLIENT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

City Weather - Client

View Server Repository

Due to the server running on a free tier of Heroku, please allow roughly 60 seconds for the website to display properly. After about a minute, refresh the page and the navbar should be displayed at the top of the page.


View Demo · Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Roadmap
  4. License
  5. Contact
  6. Resources

About The Project

A simple weather application using the MERN stack and OpenWeatherMap API. Makes use of React Context, Fetch, Axios, and JWT to create a functional user registration and log in system that will immediately display the weather for your city upon logging in.

Learning my way around React and React Hooks was the most challenging part of this project. The file structure is a bit messy since I kept implementing new concepts I've learned. I couldn't decide between using a custom React hook for fetch or to use Axios, so I used both for different reasons, though in the future Axios seems to be the way to go for the time being.

Another issue was having the user's city show up after logging in, through I solved this with React Context and a simple page refresh. Although simple, countless hours were spent trying to understand what React has to offer.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Installation

  1. Get a free API Key at Current Weather Data

  2. Clone the repo

    git clone https://github.com/PhilipBDev/MERN-Weather-App-CLIENT.git
  3. Install NPM packages

    npm install
  4. Create an ENV file with the following attributes using your own Open Weather API key:

    REACT_APP_WEATHER_URL='http://api.openweathermap.org/data/2.5'
    REACT_APP_WEATHER_API=
    
    NODE_ENV='development'

Roadmap

See the open issues for a list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @PhilipBDev - PhilipBDev@gmail.com

Project Link: https://github.com/PhilipBDev/MERN-Weather-App-CLIENT

Resources

About

(Front End) - Simple weather application built with the MERN stack that displays the current weather. Features user authentication to automatically display the weather for your set city.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published