Git Product home page Git Product logo

java-spring-weather-api's Introduction

Java Spring Weather API

Java Spring Weather API - System for collecting and processing weather data.

The system consists of two parts:

  • Weather Server
  • Weather Sensor

Server - RESTful service for filtering and sorting weather data. Provides the ability to register a sensor, send information about all active sensors, save received weather measurements data and send weather data from either one or all sensors. When an error occurs, the server sends special messages.

Sensor - service for collection weather data and sent to Server. When launched, it registers with the server and sends weather measurements data every 3 - 15 seconds.

Dependencies

Server uses PostgreSQL databases so it must be installed for the system to function.

All other project dependencies exist in pom.xml file and once your run the project, all dependencies will be downloaded.

Run Locally

Clone the project

  git clone https://github.com/CMEXOB/Java-Spring-Weather-API.git

Before start Server and Sensor you need change their application.properties files

Server application.properties (WeatherServer/src/main/resources/application.properties):

  • Change datasourse url, username and password
  • (Optional) Change server port (default=8080)

Sensor application.properties (WeatherSensor/src/main/resources/application.properties):

  • Change Server address
  • Change Sensor name
  • (Optional) Change sensor port(default=8089)

Start Weather Server.

   mvn  -f ./WeatherServer/pom.xml spring-boot:run

Start Weather Sensor.

   mvn  -f ./WeatherSensor/pom.xml spring-boot:run

API Reference

Server has Swagger API documentation. To view it go to:

  {server.ip}/swagger-ui/index.html

Development time

Planning Development Testing Documentation
3 hour 18 hour 10 hour 2 hour

java-spring-weather-api's People

Contributors

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