A full-stack AI-powered legal document automation platform built with Next.js, Express.js, and PostgreSQL.
- AI Chat Assistant - Full-page chat interface for legal document help
- Authentication System - JWT-based login/signup with PostgreSQL
- Responsive Design - Modern UI with smooth animations
- Session Management - Multiple chat sessions with history
- Real-time Messaging - Instant AI responses for legal queries
- Database Integration - Neon PostgreSQL for data persistence
- Frontend: Next.js 14, TypeScript, Tailwind CSS
- Backend: Express.js, Node.js
- Database: PostgreSQL (Neon Cloud)
- Authentication: JWT tokens, bcrypt
- Icons: Lucide React
cd backend
npm install
npm startnpm install
npm run dev- Backend Server: http://localhost:3000
- Frontend Server: http://localhost:3001
- Chat Page: http://localhost:3001/chat
Create a .env file in the backend directory:
DATABASE_URL=your_neon_postgresql_url
JWT_SECRET=your_jwt_secret- User registration with company details
- JWT-based secure login
- Protected routes and middleware
- Professional full-page chat layout
- Multiple conversation sessions
- Message history and persistence
- Real-time AI responses
- Smooth animations and transitions
- Modern landing page design
- Smooth scrolling navigation
- Authentication-aware CTAs
- Responsive mobile design
Built for Mumbai Hacks 2025 🏆