Skip to content

Latest commit

 

History

History
149 lines (107 loc) · 2.49 KB

File metadata and controls

149 lines (107 loc) · 2.49 KB

Installation Guide

System Requirements

Minimum Requirements

  • Python 3.11 or higher
  • 2 GB RAM
  • 500 MB disk space
  • Internet connection

Recommended Requirements

  • Python 3.11+
  • 4 GB RAM
  • 2 GB disk space
  • Stable internet connection (10+ Mbps)

Installation Steps

1. Clone the Repository

git clone https://github.com/MeridianAlgo/FinDB.git
cd FinDB

2. Create Virtual Environment (Recommended)

Windows

python -m venv venv
venv\Scripts\activate

Linux/MacOS

python3 -m venv venv
source venv/bin/activate

3. Install Dependencies

pip install --upgrade pip
pip install -r requirements.txt

4. Download Required Corpora

python -m textblob.download_corpora

This will download the necessary NLTK data for sentiment analysis.

5. Verify Installation

python -c "import scraper, data_export, database; print('Installation successful')"

Configuration

Environment Variables

Create a .env file in the root directory (optional):

DATABASE_URL=sqlite:///financial_news.db
LOG_LEVEL=INFO
SCRAPE_INTERVAL_HOURS=24
MAX_ARTICLES_PER_SOURCE=100
DATA_RETENTION_DAYS=365

Database Initialization

The database will be automatically created on first run. To manually initialize:

from database import init_database
init_database()

Troubleshooting

Common Issues

ImportError: No module named 'X'

Solution: Reinstall dependencies

pip install -r requirements.txt --force-reinstall

NLTK Data Not Found

Solution: Manually download corpora

python -m textblob.download_corpora

Permission Denied on Database

Solution: Check file permissions

chmod 644 financial_news.db  # Linux/MacOS

SSL Certificate Errors

Solution: Update certificates

pip install --upgrade certifi

Docker Installation (Alternative)

Using Docker

docker build -t findb .
docker run -d -p 8000:8000 findb

Using Docker Compose

docker-compose up -d

Verification

Run the test suite to verify installation:

python -m pytest tests/

Next Steps

After successful installation:

  1. Review Configuration Guide
  2. Read Usage Guide
  3. Check API Documentation
  4. Review Contributing Guidelines

Support

For installation issues: