CodeSensei is an intelligent code review and analysis platform that helps developers improve their code quality through AI-powered reviews and suggestions.
- 🤖 AI-powered code review
 - 🔐 User authentication and profile management
 - 📊 Code review statistics and history
 - 🌐 RESTful API architecture
 - 🐳 Docker containerization
 - 🔄 Real-time code analysis
 
- Frontend: React.js with Vite
 - Backend: Node.js with Express
 - Database: MongoDB
 - AI Integration: Cohere API
 - Containerization: Docker
 - Authentication: JWT
 
- Node.js (v14 or higher)
 - Docker and Docker Compose
 - MongoDB (or use the Docker container)
 - Cohere API key
 
- Clone the repository:
 
git clone https://github.com/yourusername/codesensei.git
cd codesensei- Create a 
.envfile in the server directory: 
PORT=5000
MONGODB_URI=mongodb://mongodb:27017/codesensei
JWT_SECRET=your_jwt_secret
COHERE_API_KEY=your_cohere_api_key- Build and start the containers:
 
docker compose up --build- Access the application:
 
- Frontend: http://localhost
 - Backend API: http://localhost:5000
 
- Install dependencies:
 
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm install- Start the development servers:
 
# Start backend server
cd server
npm run dev
# Start frontend server
cd client
npm run devPOST /api/register- Register a new userPOST /api/login- Login user
POST /api/review- Submit code for review
GET /api/profile- Get user profilePATCH /api/profile- Update user profilePOST /api/profile/change-password- Change passwordDELETE /api/profile- Delete accountGET /api/profile/stats- Get user's review statistics
codesensei/
├── client/                 # Frontend React application
├── server/                 # Backend Node.js application
│   ├── controllers/       # Route controllers
│   ├── middleware/        # Custom middleware
│   ├── models/           # Database models
│   ├── routes/           # API routes
│   └── server.js         # Main application file
├── docker-compose.yml     # Docker compose configuration
└── README.md             # Project documentation
- Fork the repository
 - Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
 
This project is licensed under the MIT License - see the LICENSE file for details.
- Cohere for AI capabilities
 - Express.js for the backend framework
 - React for the frontend framework
 - MongoDB for the database