Covid19 news in a university project that creates a web application which provides news for Covid19.
mvn spring-boot:runlocalhost:8081/news → you will see welcome screenkeep in mind that the application's DB saved in test.db (in this repository), if you want to use in memory DB change the value of
spring.datasource.urlin application.properties tojdbc:h2:mem:testdb)
You can see all available endpoint by going to localhost:8081/swagger-ui.html
The main endpoint is localhost:8081/news
You can start the application on different port than 8081, just add -Dserver.port=<port> when you run with maven
you can execute curl queries to add new entities, for example:
curl -X POST "http://localhost:8081/news" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"author\": \"test\", \"keywords\": [ \"asd\" ], \"paragraphs\": [ \"test\" ], \"title\": \"test\"}"
docker build . --tag covid19:latest
and the start is by:
docker run -d -p 8081:8081 covid19:latest
access the app on http://localhost:8081
Content type
Image
Digest
Size
105.1 MB
Last updated
about 6 years ago
docker pull denisduev/covid-19