Code Monkey home page Code Monkey logo

weatherapp's Introduction

Weather App

.Net C#

I created this project to study C# using a service-oriented architecture (SOA). The biggest challenge was understanding the architecture and organizing the project inside the Visual Studio, but in the end, I could achieve the objective with 3 separate services.

Table of contents

Architecture

Using SOA in this project brought the benefit of scalability, flexibility, and ease of maintenance. With self-contained services, each component's development, deployment, and maintenance is easier to do independently, leading to faster deployment and more agile responses to changes during the development. Additionally, SOA can provide better fault tolerance and reliability by isolating failures in individual services. Integrating other systems and services in the future is also easier when using this structure.

C# and .NET

The technologies used were C# and .NET with the objective of the study. With the support of object-oriented programming principles C# was able to help with the structure and reliability of the system. .NET which is a robust and powerful framework for building web APIs, is widely used in enterprise-level applications, making it a good choice to build a highly scalable and performant API.

OpenWeather

The OpenWeather API is a popular weather data provider that offers weather information for any location on Earth. It provides various weather data such as temperature, wind speed, humidity, pressure, cloudiness, precipitation, and more. It is necessary a key use the API and offers good services even in the free version for a simple and small project.

Features

Three endpoints are available on my API with some improvements on the results given by OpenWeather.

CityLocation/city/{city_name}

This endpoint retrieves 5 cities with their name, latitude, longitude, and country.

WeatherCurrent/weather/{lat},{lon}

This endpoint retrieves information about the current weather of a location.

WeatherForecast/forecast/{lat},{lon}

This endpoint retrieves a forecast of the weather for the next 5 days.

Build instructions

To build the project simply enter each project folder and run.

dotnet build

To execute the project got to the bin/Release/net6.0 and execute the .dll file.

dotnet run "WeatherCurrent.dll"

weatherapp's People

Contributors

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