AI-powered legal assistant platform built with modern web technologies. LawyerOfOne democratizes legal assistance by providing intelligent document analysis, case management, and AI-driven legal guidance.
- AI Legal Assistant: Powered by GPT-4 for intelligent legal guidance
- Document Analysis: Automated contract review and risk assessment
- Case Management: Organize and track legal matters efficiently
- Secure Document Storage: End-to-end encrypted document management
- Multi-language Support: Available in English, Spanish, and French
- Real-time Collaboration: Work with legal professionals seamlessly
- Payment Integration: Stripe-powered billing and subscriptions
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Design System with Utlyze Blue (#4169E1)
- State Management: Zustand
- UI Components: React with custom design system
- Authentication: Supabase Auth
- Runtime: Node.js with Express
- Language: TypeScript
- Database: PostgreSQL with Prisma ORM
- Cache: Redis
- AI Integration: OpenAI GPT-4
- File Storage: AWS S3 / Cloudflare R2
- Payment Processing: Stripe
- Container: Docker & Docker Compose
- CI/CD: GitHub Actions
- Monitoring: Sentry
- Analytics: PostHog
- Deployment: Vercel (Frontend) / AWS ECS (Backend)
lawyerofone/
βββ frontend/ # Next.js frontend application
β βββ src/
β β βββ app/ # App router pages
β β βββ components/ # React components
β β βββ styles/ # Design system & global styles
β β βββ hooks/ # Custom React hooks
β β βββ utils/ # Utility functions
β β βββ types/ # TypeScript type definitions
β βββ public/ # Static assets
βββ backend/ # Express API server
β βββ src/
β β βββ api/ # API routes
β β βββ models/ # Database models
β β βββ services/ # Business logic
β β βββ middleware/ # Express middleware
β β βββ utils/ # Helper functions
β βββ prisma/ # Database schema
βββ docs/ # Documentation
βββ scripts/ # Utility scripts
βββ docker-compose.yml # Local development setup
- Node.js 20+
- Docker & Docker Compose
- PostgreSQL 16+
- Redis 7+
- Clone the repository:
git clone https://github.com/yourusername/lawyerofone.git
cd lawyerofone- Copy environment variables:
cp .env.example .env- Update
.envwith your configuration:
- Database credentials
- API keys (OpenAI, Stripe, Supabase)
- JWT secrets
# Start all services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose downcd backend
npm install
npx prisma migrate dev
npm run devcd frontend
npm install
npm run devAccess the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
- API Documentation: http://localhost:3001/docs
cd backend
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage reportcd frontend
npm test # Unit tests
npm run test:e2e # E2E tests with PlaywrightOur design system is built around:
- Primary Color: Utlyze Blue (#4169E1)
- Accent Color: Dark Slate (#34495E)
View the complete style guide:
cd frontend
npm run dev
# Navigate to http://localhost:3000/style-guide- JWT-based authentication
- End-to-end encryption for sensitive documents
- Rate limiting and DDoS protection
- Regular security audits
- GDPR compliant data handling
# Frontend
cd frontend
npm run build
npm start
# Backend
cd backend
npm run build
npm start# Build images
docker build -t lawyerofone-frontend ./frontend
docker build -t lawyerofone-backend ./backend
# Run with production config
docker-compose -f docker-compose.prod.yml up -dWe welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT-4 integration
- Supabase for authentication
- Stripe for payment processing
- Vercel for frontend hosting
- Email: support@lawyerofone.com
- Documentation: https://docs.lawyerofone.com
- Community: https://community.lawyerofone.com
Built with β€οΈ by the LawyerOfOne Team