This is the FastAPI backend for the HelloWorld webapp which fetches news from the NewsCatcher News API and performs sentiment analysis on it using Azure Text Analytics.
This API has been deployed using Azure App Services and can be found here:
https://hello-world-fastapi.azurewebsites.net/
GET /api/news
GET /api/data
GET /api/points
To run this project, you will need to add the following environment variables to your .env file
API_KEY
Your NewsCatcherAPI key
AZURE_API_KEY
Your subscription key for the Azure Text Analytics Service
ENDPOINT
Endpoint for the above service
Clone the project
git clone https://github.com/sam9111/HelloWorld-FastAPIGo to the project directory
cd HelloWorld-FastAPIInstall requirements
pip install -r requirements.txtStart the server
uvicorn main:app --host 0.0.0.0 --reloadContributions are always welcome!
Create an issue or a PR and I will check it out immediately.