Coder Social home page Coder Social logo

weather-api-service-public's Introduction

Weather-api-service-public microservice application

Develop, test and deploy a microservice to show the output of a city's (to be taken as an input parameter) next 3 days high and low temperatures.

  1. If rain is predicted in next 3 days or temperature goes above 40 degree Celsius then mention 'Carry umbrella' or 'Use sunscreen lotion' respectively in the output, for that day.
  2. In case of high winds (i.e.,) Wind > 10mph, mention “It’s too windy, watch out!”
  3. In case of Thunderstorms, mention “Don’t step out! A Storm is brewing!”
  4. End user should be able to view results by changing the input parameters
  5. The service should be accessible via web browser.
  6. TODO The solution should support offline mode with toggles
  7. TODO The service should return relevant results as expected, even while the underlying dependencies (Ex: Public API) are not available!

API Data Sources

APIs
https://api.openweathermap.org/data/2.5/forecast?q=london&appid=apikey&cnt=10
Documentation: https://openweathermap.org/api
https://openweathermap.org/weather-conditions#Weather-Condition-Codes-2

TODO NFRs

• Demonstrate SOLID, 12 Factor and HATEOAS principles, Design Patterns in the design and implementation
• Demonstrate Performance, Optimization & Security aspects
• Demonstrate Production readiness of the code
• Demonstrate TDD & BDD & Quality aspects
• Demonstrate sensitive information used in the Micro Services such as API keys are protected / encrypted

TODO Documentation

• Include the open-API spec./Swagger to be part of the code. Should be able to view API via swagger (Documentation to explain the purpose of the API along with Error codes that the service consumers & client must be aware of!)
• Create a README.md file in the repository and explain the design and implementation approach
• In the README, add a sequence diagram or flowchart created using draw.io – https://www.draw.io
• Mention the design patterns used in the code

TODO Build & Deploy

CI
• Build CI/CD pipeline for your project(s); Pipeline scripts need to be part of the codebase;
• Ensure the Jenkins job config., scripts are a part of the project sources
CD
• Demonstrate the service deployment using a Docker container (Create a docker image and publish service locally)
• Ensure the docker files are a part of the project sources

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.