Sentiment News is a web app dedicated to exploring the relationship between financial news article sentiment and the price action of related stocks. The goal of this project was to quantify how positive or negative sentiment in news articles can influence stock price fluctuations. For example, when a news article about a company's success is published, the stock price of that company is expected to increase. This app creates insights into this phenomenon by analyzing news article sentiment and correlating it with stock price changes.
- TypeScript
- Next.js
- TailwindCSS
- Python
- FastAPI
- Tortoise-ORM
- PostgreSQL
First, install the dependencies:
npm install
# or
yarn
# or
pnpm install
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
- Clone the repo
git clone https://github.com/bagus0300/Sentiment-News-Backend.git
- Create virtual environemnt
cd server
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