/springboot-weather-api

A Spring Boot web application to fetch data from mongoDB and getting weather details using Open Weather Map API using Thymeleaf

Primary LanguageJava

Spring Boot Weather API and MongoDB

Prerequisites

  • JDK 1.8.X
  • Maven 3.3.X
  • MongoDB
  • Open weather map API keys

Generating keys

MongoDB

  • Run MongoDB Instance
  • Create a database (refer to application.properties for name)
  • Create a collection (refer to products.java for the model)

Run

  • Download/Clone the project on to your local machine
  • Run the project on your machine
  • Create records using Postman POST /api/product
  • Send a request to http://localhost:8081/