Web application for viewing the current weather. The user can register and add one or more locations (cities, villages, other points) to the collection, after which the main page of the application starts displaying the list of locations with their current weather.. The idea is taken from here
Url -'/home'
- Links to the main page where you can see all liked locations and delete them.Delete mapping to "locations/delete/{id}" where id is your location id.
- Navbar:
- Sign Out: Sends a POST request to /logout to sign out the user.Delete cookie and invalidate your session
- Search: Sends a GET request to /search?query=query, where query is the user-provided search term.
- result of your search term. Geocoding API call for finding longitude and latitude and then by coordinates get temperature from openweather.
- if you press "heart" than it will save it like your liked location with post mapping to "locations/add".
- login page. Post mapping to "/login" when you press login. Creates cookie and send to your browser, update your session.
-register page. Post mapping to "/register". Creates session and cookie for you and save your login and encrypted password.
- occur when something went wrong in back or get mapper doesnt exists to your url
- Java 11+
- Apache Maven
- Tomcat 10
- Intellij IDEA
- Docker
- OpenWeather Api Key
-
Clone the repository:
git clone https://github.com/ssss1131/weather_tracker.git -
Open your cloned repository folder in Intellij IDEA
-
Open the console(Alt + F12) and type
docker-compose -f docker-compose-dev.yaml up -d -
Open the application.properties file and insert your OpenWeatherAPI key there to weather.api.key
-
In Intellij IDEA, select Run -> Edit Configuration. In the pop-up window, click "+" and add Tomcat :
-
Then click "Fix" :
-
In the window that pops up, select :
-
In the Application context leave the following :
-
Click Apply and start Tomcat










