Skip to content

Repository files navigation

Headline news

Get headlines for your service. You can get the news headlines in two manners, one by SSE(server sent events) and other by the famous REST

How to start the application

Using only docker you should use the command below. It's necessary a MongoDB up too

docker run -p 8080:8080 --network=host news-headline

Or you can only use the docker-compose.yaml and execute the code below

docker-compose up

How to get headlines

Attention!

Only responses by json can be accessed by Browser, if you wanna a response with SSE you should pass by header a Content-Type = text/plain and if you're using the api for development purposes, to call endpoints and expect a json output, you don't need pass a Content-Type

Endpoints available

About

Get news from different sources and different countries

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages