A modern chat application built with React and FastAPI, featuring AI agents powered by LangChain and LangGraph.
Navigate to the backend directory:
cd backend
Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Create a .env
file in the backend directory with your API key:
GOOGLE_API_KEY=your_google_api_key
Start the backend server:
uvicorn app.main:app --reload
Navigate to the frontend directory:
cd frontend
Install dependencies:
npm install
Start the development server:
npm run dev
Create a new repository on GitHub:
Initialize git in your local project:
git init
Create a .gitignore
file in the root directory:
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
venv/
# Environment variables
.env
# Node
node_modules/
npm-debug.log
yarn-error.log
yarn-debug.log
.pnpm-debug.log
.npm/
# Build output
dist/
dist-ssr/
# Editor directories and files
.idea/
.vscode/
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.DS_Store
Add your files and make your first commit:
git add .
git commit -m "Initial commit"
Link your local repository to the GitHub repository:
git remote add origin https://github.com/yourusername/your-repo-name.git
Push your code to GitHub:
git push -u origin main
Note: If you're using an older version of Git, the default branch might be "master" instead of "main".
http://localhost:5173
frontend/src/
- React application codecomponents/
- Reusable UI componentsservices/
- API communication layerhooks/
- Custom React hookstypes/
- TypeScript type definitionsbackend/app/
- FastAPI server coderouters/
- API endpoint definitionsagents/
- LangChain agent implementationsmodels/
- Data models and schemasContributions are welcome! Here's how you can help:
git checkout -b feature/amazing-feature
git commit -m 'Add some amazing feature'
git push origin feature/amazing-feature
Found a bug or have a feature request? Please open an issue:
This project is licensed under the MIT License - see the LICENSE file for details.