Navigate to the project directory and run the following command
cd WeatherApi/src/main/reactThen use the following command to build
npm run buildThen navigate to the project root directory and run the following command
mvn clean installThen navigate to the target directory and run the following command
mvn spring-boot:runThis project is a weather api which uses the weatherbit api to get the weather details. The project is built using java spring boot and react. The project is built using the following technologies:
- Java Spring Boot
- React
- Weatherbit Api
The project is divided into two parts:
- Backend
- Frontend
The backend is built using java spring boot and the frontend is built using react. The backend is responsible for fetching the weather details from the weatherbit api and the frontend is responsible for displaying the weather details.
The backend is built using java spring boot. The backend is responsible for fetching the weather details from the weatherbit api. The backend has the following classes:
- WeatherController
- WeatherService
- Weather
The WeatherController class is responsible for handling the requests and responses. The WeatherService class is responsible for fetching the weather details from the weatherbit api. The Weather class is a model class which represents the weather details.
The frontend is built using react. The frontend is responsible for displaying the weather details. The frontend has the following components: