Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pradeepsingroul/weatherproject
This is a basic weather project and it is a indcidual project In this project user can find the weather for particular location by pincode and date when user pass the pincode and date project will return the weather details like - temperature , min_temperaturee, max_temperature, wind details, sunrise, sunset etc. In this project I use java.........
https://github.com/pradeepsingroul/weatherproject
apis github java mysql-database spring spring-boot spring-mvc sql
Last synced: about 1 month ago
JSON representation
This is a basic weather project and it is a indcidual project In this project user can find the weather for particular location by pincode and date when user pass the pincode and date project will return the weather details like - temperature , min_temperaturee, max_temperature, wind details, sunrise, sunset etc. In this project I use java.........
- Host: GitHub
- URL: https://github.com/pradeepsingroul/weatherproject
- Owner: pradeepsingroul
- Created: 2023-03-01T09:07:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T05:36:19.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T23:46:44.534Z (3 months ago)
- Topics: apis, github, java, mysql-database, spring, spring-boot, spring-mvc, sql
- Language: Java
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeatherProject
![Logo](https://user-images.githubusercontent.com/104360276/221820586-f17ee6ff-a131-4ea1-91e2-849fab5b250d.jpeg)
This is a basic weather project where we pass a pincode and the date and it will return the weather details like rain,clouds,temp,min_temp,max_temp,feel-Like,sunset,sunrise,etc-etc.
there is only one user : user who can search weather for particular location.## ER Diagram
![ER diagrame](https://user-images.githubusercontent.com/104360276/221812995-4469cb98-9005-42b3-84c9-2cd5f1c99a63.png)
/view)## Features
- user can search weather details for particular location and particular date, project will return weather details for that locations## API Reference
#### for getting lattitude , longitude and some other locartion details
```https://api.opencagedata.com/geocode/v1/json?key={api_ley}&q={pincode}&pretty=1```
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `api_key` | `string` | **Required**. `767d0ceffae94717836eadb18dee640a` |
| `pincode` | `Integer`| `which you want to search` |it takes pincode as parameter and return pincode details..........
#### for getting weather details
```https://api.openweathermap.org/data/2.5/weather?lat={lattitude}&lon={longitude}&dt={unixTime}&appid={your api key}&units=metric```
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| `appid` | `string` | **Required**.956df4d89fd7e25fc00ccab4ae566c5d |
| `dt` | `Long` | unixtime |
| `lon` | `double` | longitude |
|`lat` | `double` | lattitude |it takes lngotude and lattitude and unixtime as parameter and return JsonObject of weather details...............
## Tech Stack
- Core Java
- Spring Boot
- Hibernate
- MySQL (RDBMS)
- Sql
- Maven
- Swagger UI
- postman
- Intellij Idea
- Giuhub## Deployment
To deploy this project on localhost paste this below code in application.properties file in the
resources and update according to your database name, username and password of your MySQL database.```properties
#changing the server port
server.port=8080#db specific properties
spring.datasource.url=jdbc:mysql://localhost:3306/database
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=username
spring.datasource.password=password#ORM s/w specific properties
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=truespring.mvc.throw-exception-if-no-handler-found=true
spring.web.resources.add-mappings=falsespring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
```
### Swagger UI - LinkUse this link to run it on browser.
```swagger
http://localhost:8080/swagger-ui
```## Authors
- [Pradeep Singroul (@pradeepsingroul) ](https://github.com/pradeepsingroul)