Simple application which lets you stay in touch with news.
- Spring-Boot 2 backend
- Angular 7 frontend
- Karma and Spock tests
- News API integration example
- Swagger 2 documentation generation
- Responsive Web Design
- SCSS usage example
- Advanced maven configuration which includes building and testing Angular application, docker image creation, merging frontend and backend into one singe spring-boot jar
- Java 11
- Java 11
- Maven 3.6.0
- Docker (running)
- Google Chrome (version 59+)
- Fully tested on windows 10. Use other systems at your own risk.
- Pull the project
- Create news-api-key.properties file in the backend\src\main\resources location.
- Add newsapi.key property with your api-key to your news-api-key.properties files. It should look something like this
newsapi.key=YOUR-API-KEY
- In the parent project directory run command
mvn clean install
- Run docker image using this command
docker run -p 8080:8080/tcp --name fullnews fullnews:0.0.1-SNAPSHOT
- Go to localhost:8080
- Go to bundle\target location and run the command
java -jar bundle-0.0.1-SNAPSHOT.jar
- Go to localhost:8080 in your browser
- Go to backend\target location and run the command
java -jar backend-0.0.1-SNAPSHOT.jar
- Go to frontend location and run the command
ng serve
- Go to localhost:4200 in your browser
After successful application launch visit swagger page to see more information about application REST API.
- Security issues in the class NewsApiUrl.
- app.component.html - change string interpolation in routerLink