Prerequisites
Before installing FinAI, ensure your system meets the following requirements:FinAI requires Python 3.11 or higher. You can verify your Python version:
Python package installer (usually included with Python)
For cloning the repository and version management
Installation Steps
Create Virtual Environment
Create an isolated Python environment to avoid dependency conflicts:
Your terminal prompt should change to show
(venv) when the virtual environment is active.Install Dependencies
Install all required Python packages from the requirements file:This installs the following core dependencies:
- Flask 3.1.2 - Web application framework
- SQLAlchemy 2.0.45 - Database ORM
- Flask-SQLAlchemy 3.1.1 - Flask integration for SQLAlchemy
- Flask-Mail 0.10.0 - Email support for password reset
- pandas 2.3.3 - Data processing and Excel export
- python-dotenv 1.2.1 - Environment variable management
- google-generativeai - Google Gemini AI SDK
- Werkzeug 3.1.5 - WSGI utilities and security
Database Initialization
FinAI uses SQLite by default with automatic initialization. The database configuration inconfig.py handles this:
config.py
app/__init__.py
The SQLite database file will be automatically created at
instance/quanlychitieu.db when you first run the application.Create Admin Account
Before running the application, create a superuser account for system management:- Email:
[email protected] - Password:
admin123
Running the Development Server
Start the Flask development server:run.py:
run.py
