Giter Club home page Giter Club logo

global-weather's Introduction

Weather RESTFul API

This is a RESTFul API developed using LoopBack framework for an existing SOAP service.

Why LoopBack framework chosen for API?

LoopBack is a highly extensible, open-source Node.js framework developed by developers which enables developers to quickly create APIs and microservices. It also provide many connectors out-of-the-box for SOAP, REST, Databases, etc.

Challengers/issues that I faced and how I resolved them

I have never used LoopBack framework or the languages (TypeScripts, Node.js) earlier. Therefore, I decided to use this as an oppertunity to learn something new over some other known frameworks and languages which I'm comfortable with.

Therefore, I decided to try out the tutorials first after finish reading all the key concepts and features of the LoopBack framework. it really help me in quickly troubleshoot issues.

The main issues I faced was, Once some of the recent code changes were not reflected in runtime. It wasn't fixed even after clean build as well. Finally I had to delete "dist" folder and rebuild to fix this issue.

How to run locally

  1. Clone the global weather repo here

  2. Run following command to run global weather SOAP service locally.

    npm install
    npm build
    npm start
    
  3. Clone weather REST API service repo here

  4. Run following command to run it locally.

    npm install
    npm build
    npm start
    

    Alternatively you can choose to run in Docker as well.

    docker build -t weather .
    docker run -p 3000:3000 -d weather
    
    
  5. RESTFul Service can be accessed from http://localhost:3000/ in the browser which will provide Swagger Open API documentation.

  6. Services can be run as follows. http://localhost:3000/weather?CityName=MEL&CountryName=AU http://localhost:3000/weather/cities/AU

global-weather's People

Watchers

Archie Muthukudasinghe 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.