An open API service indexing awesome lists of open source software.

https://github.com/rafal-stefanski/spring-daily-news

App in Spring Boot 2. Gets daily news from external API and save it in database. All news and photos are editable through GUI.
https://github.com/rafal-stefanski/spring-daily-news

api http-client java-17 jdbc junit mockito mysql spring-security thymeleaf

Last synced: 3 months ago
JSON representation

App in Spring Boot 2. Gets daily news from external API and save it in database. All news and photos are editable through GUI.

Awesome Lists containing this project

README

          

### Spring Daily News ( :newspaper: :smile: )

- using: http client, MySQL, JDBC
- test: unit test with Junit5 and Mockito

### address endpoint: ```http://localhost:8080/news```
***
### Description
Application downloads list of news with photos, titles, descriptions and source link, from external API. Then adds them to database. For saved news GUI shows a view of the list, with source link button, to find out more on specific info and button for editing all fields in each news.
***
### Unit tests
![screen shot](https://github.com/Rafal-Stefanski/Spring-Daily-News/blob/master/src/main/resources/static/screenshot_test_01.png)

### Screenshots
![screen shot](https://github.com/Rafal-Stefanski/Spring-Daily-News/blob/master/src/main/resources/static/screenshot_01.png)

![screen shot](https://github.com/Rafal-Stefanski/Spring-Daily-News/blob/master/src/main/resources/static/screenshot_02.png)

#### 2024-06-12 update
App is now Dockerized.
1. in terminal `mvn wrapper:wrapper` to create .mvn folder in project directory.
2. in terminal `docker-compose up` or green arrow in docker-compose.yml gutter.
#### 2024-08-25 update
Updated to Java 17, added to the project:
1. Spring Security,
2. User registration and login, users date saved in the database.
3. "remember me" option on login, to save user session in the database.
4. User gets activation email with link to activate account.
```http://localhost:8080/register```
5. Admin can view and edit news, while User can only view them.