Python
Version 3.9 or higher required for all features.
Get Sophia Codex running on your local machine in minutes.
Download the source code from GitHub to your local machine.
git clone https://github.com/AlexBiobelemo/Sophia-Code.git
cd Sophia-Code
Set up an isolated Python environment for the project.
python -m venv venv
venv\Scripts\activate
python3 -m venv venv
source venv/bin/activate
Install all required Python packages.
pip install -r requirements.txt
Create a .env file in the root directory with the following variables:
Important: Replace GEMINI_API_KEY with your actual Google Gemini API key. You can get one from Google AI Studio.
Set up the database schema using Flask-Migrate.
flask db upgrade
Set up the gamification badge system.
python -c "from app.badge_system import initialize_default_badges; from app import create_app, db; app = create_app(); with app.app_context(): initialize_default_badges()"
Start the Flask development server.
python run.py
The application will be available at http://127.0.0.1:5000/
Version 3.9 or higher required for all features.
Python package installer for dependencies.
Version control for cloning the repository.
instance/ folder exists for uploads