NewsHeadlines-FastAPI

所属分类:MongoDB
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-10-05 14:01:21
上 传 者sh-1993
说明:  创建的web应用程序,使用Python和新闻API让用户了解最新新闻。,
(A web application created to keep users up-to-date with the latest news using Python and News API.,)

文件列表:
Dockerfile (129, 2023-11-20)
app.py (3028, 2023-11-20)
requirements.txt (78, 2023-11-20)
screenshots/ (0, 2023-11-20)
screenshots/ss.png (871210, 2023-11-20)
static/ (0, 2023-11-20)
static/main.js (3945, 2023-11-20)
static/placeholder.jpg (11798, 2023-11-20)
templates/ (0, 2023-11-20)
templates/index.html (2066, 2023-11-20)
templates/old_index.html (4501, 2023-11-20)

# FastAPI News Headlines Aggregator This project combines the power of Python and FastAPI to provide users with up-to-the-minute news articles from a wide range of sources. The users can access the latest headlines, but they can also enter custom queries to find articles on specific topics of interest. A NoSQL database is used to efficiently store and manage the vast amount of articles data. ## Features - Latest news articles are fetched from [News API](https://newsapi.org/) based on user's preference. - Articles are stored in MongoDB for efficient access and management. - Users can access headlines or perform custom searches. ## Tech Stack **Front End:** Javascript, HTML, Bootstrap 4, jQuery
**Back End:** Python, FastAPI, MongoDB
**Tools:** Docker ## Deployment Create a `config.py` file and initialize variables `API_KEY = '...'` and `MONGO_URL = 'mongodb://localhost:27017/'` using your own key and URL accordingly. Then deploy this project with Docker by running ```bash docker run -d -p 27017:27017 --name mongodb mongo docker build -t fast-news-api . docker run -d -p 5000:5000 fast-news-api ``` ## Screenshots ![Results](https://github.com/manosmin/Headlines-FastAPI/blob/master/screenshots/ss.png)

近期下载者

相关文件


收藏者