Git Product home page Git Product logo

simple-weather-app's Introduction

Open Issues Forks Stars Maintained Made with Python Open Source Love Built with Love Follow Me Telegram

๐Ÿ“’ Index

๐Ÿ”ฐ About

Implemented in Flask, Python3, It is a basic CRUD application which supports searching for cities worldwide and adding them as css cards showing their temperature and other details, It also supports deleting the cards.

โšก Usage

To use this project.

๐Ÿ”Œ Installation

  • Install dependencies & export environment variables.
$ sudo -H pip3 install -r requirements.txt
$ export FLASK_APP=app.py

๐Ÿ“ฆ Commands

  • Start project using
$ flask run

๐Ÿ“ File Structure

  • Add a file structure here with the basic details about files, below is an example.
.
โ”œโ”€โ”€ apikey.txt
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ _config.yml
โ”œโ”€โ”€ images
โ”‚ย ย  โ”œโ”€โ”€ logo
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ logo.png
โ”‚ย ย  โ””โ”€โ”€ screenshots
โ”‚ย ย      โ”œโ”€โ”€ 1.png
โ”‚ย ย      โ””โ”€โ”€ 2.png
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ templates
    โ”œโ”€โ”€ a.css
    โ””โ”€โ”€ weather.html

4 directories, 11 files
No File Name Details
1 apikey.txt contains API key obtained from Open Weather Map
2 app.py contains logic for simple weather application
3 _config.yml contains information regarding github pages used for hosting the contents of README
4 images/ contains app screenshots and logo.
7 LICENSE this project uses MIT License.
8 requirements.txt contains all the dependencies used in the app.
9 templates/ contains static html and css file for the frontend.

โ— Guideline

  • Code Style

black

In order to maintain the code style consistency across entire project I use a code formatter. I kindly suggest you to do the same whenever you push commits to this project.

The python code formatter I chose is called Black. It is a great tool and it can be installed quickly by running

sudo -H pip3 install black

or

python3.6 -m pip install black

It requires Python 3.6.0+ to run.

  • Usage
black {source_file_or_directory}

For more details and available options, please check their psf/black.

isort

I also use isort, it is a Python utility / library to sort imports alphabetically, and automatically separated into sections. It provides a command line utility which can be installed using.

sudo -H pip3 install isort 
  • Usage
isort {source_file}.py

For more details and available options, please check their timothycrosley/isort.

  • Close Issues

Close issues using keywords: how to ?

๐Ÿ“„ Resources

๐Ÿ“ท Gallery

๐ŸŒŸ Credit/Acknowledgment

Contributors

๐Ÿ”’ License

License

simple-weather-app's People

Contributors

bymayanksingh avatar

Stargazers

Roman avatar

Watchers

 avatar

Forkers

curioustauseef

simple-weather-app's Issues

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.