You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an AI-powered migration assistance chatbot built for the International Organization for Migration (IOM). It provides verified migration information and personalized pathways to help migrants make safer, informed decisions.
76
72
77
-
2.**Set up environment variables:**
78
-
```bash
79
-
cp .env.example .env
80
-
# Edit .env file with your settings
81
-
```
73
+
**Architecture**: Flask backend with React frontend, PostgreSQL database, and enhanced AI system combining RAG (Retrieval-Augmented Generation) with CrewAI multi-agent architecture using Azure OpenAI and Chroma vector database.
82
74
83
-
3.**Start the application with Docker Compose:**
84
-
```bash
85
-
docker-compose up -d
86
-
```
87
-
88
-
4.**Access the application:**
89
-
- Frontend: http://localhost
90
-
- Backend API: http://localhost:8510
91
-
92
-
## Development Environment
75
+
## Development Commands
93
76
94
77
### Backend Development
95
-
96
78
```bash
97
79
cd backend
98
80
python -m venv env
99
81
source env/bin/activate # On Windows: env\Scripts\activate
The PostgreSQL database is automatically initialized with the required tables when using Docker Compose. For manual setup, see the [backend README](backend/README.md).
103
+
# CrewAI integration test
104
+
cd backend
105
+
python test_crew_ai.py
120
106
121
-
## CI/CD Pipeline
107
+
# Frontend tests
108
+
cd frontend
109
+
npm test
110
+
```
122
111
123
-
This project utilizes GitHub Actions for Continuous Integration and Deployment:
112
+
### Docker Development
113
+
```bash
114
+
# Full stack with Docker Compose
115
+
docker-compose -f migration-azure-docker-compose.yml up -d
124
116
125
-
-**CI Pipeline:** Runs on PR and pushes to main/dev branches
126
-
- Lints and tests frontend code
127
-
- Lints and tests backend code
128
-
- Builds Docker images
117
+
# Individual services
118
+
docker build -t migration-backend ./backend
119
+
docker build -t migration-frontend ./frontend
120
+
```
129
121
130
-
-**CD Pipeline:** Runs on pushes to main branch and tags
131
-
- Builds and pushes Docker images to GitHub Container Registry
132
-
- Deploys to staging/production environments
122
+
## Architecture Details
123
+
124
+
### Backend (Flask)
125
+
-**Main entry**: `backend/main.py` - Flask app with authentication, admin routes, and user management
126
+
-**Chat systems**:
127
+
-`backend/chat_rag.py` - Original RAG implementation with Azure OpenAI and Chroma
128
+
-`backend/chat_crew_ai.py` - Enhanced CrewAI multi-agent system
129
+
-**Database**: PostgreSQL with SQLAlchemy ORM, connection via `utility/db_config.py`
130
+
-**Authentication**: JWT tokens with httpOnly cookies, role-based access (users/admins)
0 commit comments