https://github.com/igormcsouza/news-api
Fetch news from Google News Section
https://github.com/igormcsouza/news-api
fastapi newsapi
Last synced: 5 months ago
JSON representation
Fetch news from Google News Section
- Host: GitHub
- URL: https://github.com/igormcsouza/news-api
- Owner: igormcsouza
- Created: 2021-09-09T00:24:38.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T02:18:44.000Z (about 2 years ago)
- Last Synced: 2024-03-27T03:26:02.048Z (about 2 years ago)
- Topics: fastapi, newsapi
- Language: Python
- Homepage: https://news-api-8597.fly.dev/docs
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# News Api
These days I figured out would be a great idea to have news on my website.
So I decide to create this api to support this feature.
It fetches news from Google News Section, bringing useful info about the news.
Visit **/docs** to see how to use this api.
## How to develop
This project has a [docker-compose.yml](docker-compose.yml) file to manage
the container. Utilize it to run whatsoever you might need.
1. How to start: Start by running the following command. Remember you need to
change ports on docker-compose if that (8001) is already taken.
```bash
app$ docker-compose up --build
```
2. How to test: Use the [test_app.py](test_app.py) file to test the api. After
that run the command below to run the tests.
```bash
app$ docker-compose build
app$ docker-compose run web pytest
```
## Troubleshooting
*_Heroku app is not not working Code H14_: This is an error with Heroku that
does not start the dyno when we push a container. See
[this](https://stackoverflow.com/questions/41804507/h14-error-in-heroku-no-web-processes-running)
to understand it better and get the fix to it.