Code Monkey home page Code Monkey logo

weather-widget's Introduction

Weather-widget

Here, I've developed weather-widget which based on 2 APIs: IpInfo.io and OpenWeatherMap.org. This is brief overview of my work, which was made specifically as a test-task to apply at Plumsail on Front-end Middle Developer position.

How to use this widget at my html page?

It's as simple as including <script> tag in your HTML. All you have to do, is to build source-code to get final bundle, than you can extract it, put wherever you want and just include it with <script src="/path-to-bundle"></script>

After that, you can use <weather-widget></weather-widget> at your HTML as simple tag.

Weather-widget custom attributes

  1. theme (string) - accepts two values: default and dark. Default theme - is light theme which is displayed as initial.
  2. lang (string) - accepts two values currently: en and ru. This is would display widget data on your language. en - default.
  3. units (string) - accepts three values: standart, metric, imperial. Responsible for how units of measurment would be displayed. Default: metric.

NEEDS DEVELOPMENT to complete

  1. instanceId (string) - if you want to add multiple instances of widgets at page, you may want to set value to this attribute to make storage usage separate.

How to set-up development?

  1. Install dependencies with: yarn
  2. Run in dev mode: yarn serve

How to build soruce-code?

Just run yarn build, this command would generate final bundle and put it into /dist repository.

weather-widget's People

Contributors

hodler-buidler 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.