Project name: WeatherApp + Angular8+ Tech stack: J2EE, Angular8+
Project made during application for Intern Position at ITWare.
// Clone the repository
- git clone
// Run the project with your IDE using a Server (Glassfish / Tomcat)
Java EE 6+
- Java EE Project structure
- Rest WebServices (JAX-RS)
- Dependency Injection (DI)
- Java Persistence API (JPA)
- Background services (Scedulers)
- Access external services via Rest API (Rest Client)
- Authentication
- Session management
Create a client-server application, the main function is to show a cities weather (temperature) data on a simple web interface, so we call our application "WeatherApp"
- Enter a city name, and fint the weather information from a public, external API (eg. openweathermap.com)
- Save the weather information to local database for the city that was entered
- List the cities and weather information that are in our local database
- Can delete city from out local database
- Weather data is automatically refreshed in the background using a scheduled service
- Add new city weather data
- Get list of weather data from our local database
- Delete city from our local database
- Create and configure the JavaEE project, called WeatherApp
- Configure database 0. Create schema: weatherapp 0. Create table: weatherdata 0. cityname - name of the city 0. temperature - the last known temperature of the city 0. time - the time of the measurement
- Configure application server.
- Create services and Rest interfaces.
- Build and deploy application.
- Test application's Rest API
Component | Task | Description | Done (Y/N) |
---|---|---|---|
Backend | Create project structure | Create a new Java EE application project in your favorite IDE and configure it. | ✅ |
Backend | Build and deploy project | Build and run the empty project on a J2EE container server. | ✅ |
Database | Create database schema and tables | Create the necesary database schema and the tables. | ✅ |
Backend | Create entity class and basic JPA functions | Create model for watherdata and save it, load it from database successfully. | ✅ |
Backend | Hello world Rest API | Create a simple REST API which returns only "Hello Weather" | ✅ |
Backend | Rest API: addCity | Implement and test the addCity API. Save data to database. | ✅ |
Backend | Rest API: listCities | Implement and test listCities API. Have to load data from local DB. | ✅ |
Backend | Rest API: deleteCity | Implement and test deleteCity API. Have to delete data from local DB. | ✅ |
Backend | openweathermap API client | Implement a client that calls openweatherapi.org weather REST API by city name. The result must be saved to our local database. | ✅ |
Backend | Scheduled update service | Implement a the update service which update the cities data from the openweather api. | ✅ |
Backend | Dependency Injection | Use DI to use Java EE components: update service (EJB), entityManager (JPA) etc... | ✅ |
Backend | Error handling | Handle errors in the Rest API with general way. | ✅ |
Backend | Logging | Log the events what happens in the REST API. | ✅ |
Backend + Frontend |
CHECK ALL THE APPLICATION IS WORKING? | CHECK ALL THE APPLICATION IS WORKING? | ✅ |