A simple REST API for a financial news sentiment app with Gemini for sentiment analysis.
- Python
- FastAPI
- Tortoise-ORM
- PostgreSQL
- Clone the repo
git clone https://github.com/Marvin-Deng/Sentiment-News-Backend.git
- Create virtual environemnt
python3 -m venv venv
# Windows
venv\Scripts\activate
# Mac
source venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Get free API keys and fill in values in
.env
hypercorn src/main:app --reload
black .
pytest
pip freeze > requirements.txt