Skip to content

ASJordi/simple-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Weather App

Weather App build with HTML, CSS, JavaScript, Express and NodeJS.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

Product Name Screen Shot

Weather App using HTML, CSS and JavaScript for the entire frontend. As well as, NodeJS and Express for the entire server-side. For this project I’ll use 2 APIs: The first is the OpenWeatherMap API and it will handle and give the data for the weather. The second is the Unsplash API and it will deliver the picture that is going to be used as background, when requesting the weather for a city. The frontend of the application was deployed on Netlify. The backend of the application was deployed on Render.

Built With

  • HTML5
  • CSS
  • JavaScript
  • NodeJS
  • Express

Getting Started

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

Prerequisites

List of prerequisites to use the application correctly.

  • NodeJS
  • To check if NPM is installed, run the following command in your terminal:
    npm -v
  • Create an account in OpenWeatherMap and Unsplash to get your API keys.

Installation

This section describes the application installation and configuration process for the frontend and backend.

  1. Clone the frontend repository
    git clone https://github.com/ASJordi/simple-weather-app.git
  2. Install NPM packages
    npm install
  3. Configure the environment variables in server folder
    // .env file
    WEATHER_API_KEY = 'YOUR_OPENWEATHERMAP_API_KEY'
    UNSPLASH_API_KEY = 'YOUR_UNSPLASH_API_KEY'
  4. Set your API URL in the frontend
    // client\public\app.js
    const base_url = <your_api_url>
  5. Run the server
    npm run dev
  6. Run the frontend (with VSCode Live Server)

Usage

The operation of the application is very simple. It is only necessary to enter the name of the desired city. In automatic the page will show the weather forecast.

Product Name Screen Shot

Product Name Screen Shot

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

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

Contact

Jordi Ayala - @ASJordi

Project link: https://github.com/ASJordi/simple-weather-app