A Flask web application for filtering and analyzing stock data from MongoDB, featuring growth calculations and customizable filters. This application is designed to work with financial data collected by the stockfinder project.
This application expects a MongoDB database populated with stock fundamentals data gathered using the stockfinder project.
- Filter stocks based on multiple criteria:
- Revenue range
- Return on Equity (ROE)
- Revenue growth rate (user-specified period)
- Earnings growth rate (user-specified period)
- Export results to CSV
- Create a
.env
file from.env.example
:
cp .env.example .env
- Configure your MongoDB connection settings in
.env
:
# MongoDB Connection Settings
MONGO_HOST=localhost
See Environment Variables section for all available configuration options.
- Build and start the application:
docker-compose up --build
The application will be available at http://localhost:5000
For development with hot-reload and debug features:
- Build and start using the development compose file:
docker-compose -f docker-compose.dev.yml up --build
Development mode features:
- Code hot-reload (changes reflect immediately)
- Debug logs
The development server will be available at http://localhost:5000
Variable | Purpose | Default Value |
---|---|---|
MONGO_HOST | MongoDB server hostname | None |
MONGO_PORT | MongoDB server port | 27017 |
MONGO_DB | MongoDB database name | stockfinder |
MONGO_USER | MongoDB username for authentication | None |
MONGO_PASSWORD | MongoDB password for authentication | None |
FLASK_ENV | Flask environment mode | production |