Giter VIP home page Giter VIP logo

weatherraml's Introduction

Code Count Main Code Base Last Commit Open Issues Repo Size

Weather API integration application

Table of Contents

Usage

Clone the repository to your local machine.

Setup

The mock weather service requires some setup before it can be used. The user can set it up using an IDE such as Visual Studio Code. Once downloaded, navigate to the folder ./WeatherRAML/weatherExcerciseDockerFile/weatherExcerciseDockerFile in the integrated terminal and run npm install. This will install the required packages. Next run npm start to run the mock weather service.

Application

• If you do not have Mule installed, you can download it with the Anypoint IDE from https://www.mulesoft.com

• You will require to have JDK 8 installed on your machine to use Mule runtime

• Open the application in Anypoint Studio and run the application from the Run menu

• Once deployed, the service will now be live for access through a browser or Postman

• You can make request to the GetWeather service using the URL http://0.0.0.0:8081/get-weather?CityName=Melbourne&CountryName=Australia

• Replace Melbourne and Australia with a desired city and country for other locations when using the live weather service. However, Melbourne is the only location available in the mock weather service

• You can make request to the GetCitiesByCountry service using the URL http://0.0.0.0:8081/GetCitiesByCountry?CountryName=Australia

• The mock service only has data for Australia while using the above mentioned method.

weatherraml's People

Contributors

bdcoelho 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.