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.
- Host: GitHub
- URL: https://github.com/rafal-stefanski/spring-daily-news
- Owner: Rafal-Stefanski
- Created: 2021-11-08T10:28:08.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-31T07:30:15.000Z (about 1 year ago)
- Last Synced: 2025-03-28T05:42:03.654Z (7 months ago)
- Topics: api, http-client, java-17, jdbc, junit, mockito, mysql, spring-security, thymeleaf
- Language: Java
- Homepage:
- Size: 1.34 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

### Screenshots


#### 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.