Culturally aware artificial general intelligence with ethical considerations at its core
- Node.js 18+ and npm
- Python 3.11+
- Docker and Docker Compose (optional)
# Clone the repository
git clone <YOUR_REPO_URL>
cd zynx-agi
# Start all services
docker-compose up -d
# Access the application
# Frontend: http://localhost:5173
# Backend API: http://localhost:8000
# API Docs: http://localhost:8000/docs
# Clone the repository
git clone <YOUR_REPO_URL>
cd zynx-agi
# Backend Setup
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # Edit .env with your configuration
uvicorn main:app --reload --host 0.0.0.0 --port 8000
# Frontend Setup (in another terminal)
cd ../
npm install
npm run dev
- Framework: FastAPI with Python 3.11
- API Documentation: Auto-generated OpenAPI/Swagger at
/docs
- Testing: pytest with β₯80% coverage requirement
- Logging: Structured logging with loguru
- CORS: Configured for frontend integration
- Framework: React 18 with TypeScript
- Build Tool: Vite
- UI Components: shadcn/ui with Tailwind CSS
- State Management: React Query for API state
- Styling: Tailwind CSS with custom AGI theme
- π Cultural Awareness: Thai and global cultural context integration
- π€ AGI Interaction: Real-time communication with AI systems
- π‘οΈ Ethical Considerations: Built-in ethical AI principles
- π Comprehensive Testing: Unit, integration, and E2E tests
- π CI/CD Pipeline: Automated testing, building, and deployment
- π Auto-generated Docs: OpenAPI and ReDoc documentation
cd backend
pytest -v --cov=main --cov-report=html --cov-fail-under=80
npm run test
npm run test:coverage
docker-compose up -d
# Run integration tests against running services
GET /health
GET /api/v1/agi/context
POST /api/v1/agi/interact
Content-Type: application/json
{
"message": "Hello, how are you?",
"cultural_context": "global",
"language": "en"
}
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
# Server Configuration
HOST=0.0.0.0
PORT=8000
DEBUG=true
# Security
SECRET_KEY=your-secret-key-here
ALGORITHM=HS256
# Logging
LOG_LEVEL=INFO
LOG_FILE=logs/app.log
# CORS
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
VITE_API_URL=http://localhost:8000
# Build and run with Docker Compose
docker-compose -f docker-compose.yml up -d
# Production deployment
docker-compose -f docker-compose.yml --profile production up -d
# Backend
cd backend
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8000
# Frontend
npm run build
npm run preview
- Fork the repository
- Create a feature branch:
git checkout -b feat/amazing-feature
- Make your changes
- Run tests:
npm test && cd backend && pytest
- Commit your changes:
git commit -m 'feat: add amazing feature'
- Push to the branch:
git push origin feat/amazing-feature
- Open a Pull Request
- Linting: ESLint for frontend, flake8 for backend
- Formatting: Prettier for frontend, black for backend
- Testing: β₯80% coverage requirement
- Security: Automated vulnerability scanning
- Backend:
GET /health
- Frontend: Built-in Vite health check
- Docker: Health checks configured for all services
- Backend: Structured JSON logging with loguru
- Frontend: Console logging with error tracking
- Docker: Container logs accessible via
docker-compose logs
- β Environment variables for secrets
- β CORS configuration
- β Input validation with Pydantic
- β Error handling without exposing internals
- β Regular security updates
- β Automated vulnerability scanning
- Never commit
.env
files - Use environment variables for sensitive data
- Rotate secrets regularly
- Use secure secret management in production
- Frontend: Vite for fast builds and HMR
- Backend: FastAPI for high-performance async API
- Database: Optimized queries and indexing (when added)
- Caching: Redis integration ready (when needed)
# Check if port 8000 is available
lsof -i :8000
# Check Python environment
python --version
pip list
# Check CORS configuration
# Verify API_URL in frontend .env
# Check backend is running on correct port
# Clean up containers
docker-compose down -v
# Rebuild images
docker-compose build --no-cache
This project is licensed under the MIT License - see the LICENSE file for details.
- FastAPI for the excellent Python web framework
- Vite for the lightning-fast build tool
- shadcn/ui for the beautiful component library
- Tailwind CSS for the utility-first CSS framework
Built with β€οΈ by the Zynx AGI Team