Coder Social home page Coder Social logo

rainrundown's Introduction

rainrundown

Fullstack Weather App using HTML, Python, Flask, JavaScript

A project I started to learn about RESTful APIs and my first Web Development project. Started this in Winter 2022, finishing it Summer 2023 to submit for CS50. I didn't really care for most of the current weather websites, which feel extremely cluttered and wanted to make something more minimal and give it my own spin.

Dependencies:

  • User must get their own API key from OpenWeatherMaps.
  • This project depends heavily on a city.list.json file provided by OpenWeatherMaps. A city.list.json file is provided in the project but it only contains two cities. If you want full functionality you must replace this file. Download options can be found here. Direct download of the json used when coding is available here.

File Descriptions:

  1. app.py:

    • This is the main application file written in Python. It sets up the Flask server, defines routes, and handles the backend logic for fetching weather data using the OpenWeatherMaps API.
    • Contains functions to handle user requests and render the appropriate HTML templates with the fetched weather data.
  2. city.list.json:

    • A JSON file that contains a list of cities. The provided file in the project contains only two cities for demonstration purposes.
    • This file is essential for the application to fetch weather data for specific cities. For full functionality, it's recommended to replace this file with the complete list from OpenWeatherMaps.
  3. styles.css:

    • Contains the CSS styles for the web application. It defines the look and feel of the application, ensuring a clean and minimalistic design as intended by the creator.
  4. weather.js:

    • A JavaScript file that handles the dynamic functionality on the frontend. It interacts with the application, updates the displayed weather data, and provides interactivity to the user. Mainly used to impliment reactive design elements to the page.
  5. weather.html:

    • Displays the fetched weather details for the selected city. It presents the data in a structured and readable format, ensuring users get the information they need without any clutter.

rainrundown's People

Contributors

davidliaos avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.