A powerful AI agent system built with Django and React, leveraging LangChain and Anthropic's Claude for intelligent interactions.
- Django backend with REST API
- React frontend with modern UI components
- Integration with Anthropic's Claude AI
- Real-time chat interface
- Secure environment configuration
- Production-ready setup with Render deployment
-
Backend:
- Django 5.0+
- Django REST Framework
- LangChain
- Anthropic Claude
- PostgreSQL (via Supabase)
-
Frontend:
- React
- Next.js
- Shadcn/ui
- TailwindCSS
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables in
.env - Run migrations:
python manage.py migrate
- Create superuser:
python manage.py createsuperuser
- Run the development server:
python manage.py runserver
The project is configured for deployment on:
- Backend: Render
- Frontend: Vercel
- Database: Supabase
Required environment variables:
DATABASE_URL: PostgreSQL connection stringDJANGO_SECRET_KEY: Django secret keyANTHROPIC_API_KEY: Anthropic API keyDEBUG: Boolean for debug modeALLOWED_HOSTS: Comma-separated list of allowed hosts
agent/: Contains the core agent implementationapi/: Django REST framework endpoints
This project uses a staging-production workflow with automated deployments.
- Production: https://yoko.vdmnexus.com
- Staging: https://yokoai-staging.vercel.app
- Development: http://localhost:3000
- Production: https://yokoai.onrender.com
- Staging: https://yokoai-staging.onrender.com
- Development: http://localhost:8000
main- Production branchdevelop- Staging branch- Feature branches - For new features/fixes
- main: Production ready code (protected)
- develop: Integration branch for features
- feature/[feature-name]: New features (e.g.,
feature/ai-memory-system) - hotfix/[issue-name]: Urgent fixes (e.g.,
hotfix/auth-bug) - release/[version]: Release preparation (e.g.,
release/v0.3.0)
feature/yoko-personality-enhancementfeature/conversation-memory-systemfeature/multi-language-supportfeature/role-switching-systemhotfix/claude-api-timeout
-
Create a feature branch from
develop:git checkout develop git pull git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Description of your changes"
-
Push your feature branch:
git push -u origin feature/your-feature-name
-
Create a Pull Request to merge into
develop- This will automatically deploy to staging when merged
-
Test on staging environment
- Frontend: https://yokoai-staging.vercel.app
- Backend: https://yokoai-staging.onrender.com
-
When ready for production:
- Create a Pull Request from
developtomain - Review and merge
- This will automatically deploy to production
- Create a Pull Request from
-
Clone the repository:
git clone https://github.com/2504VDM/yokoai.git cd yokoai -
Switch to develop branch:
git checkout develop
-
Install dependencies:
# Backend cd backend python -m venv venv source venv/bin/activate # or `venv\Scripts\activate` on Windows pip install -r requirements.txt # Frontend cd frontend npm install
-
Run locally:
# Backend cd backend python manage.py runserver # Frontend cd frontend npm run dev
- Pushing to
developautomatically deploys to staging - Pushing to
mainautomatically deploys to production
Make sure to set up these environment variables in GitHub Actions:
RENDER_API_KEYRENDER_SERVICE_ID_STAGINGRENDER_SERVICE_ID_PRODVERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID