Skip to content

πŸ† Winner of LexHacks 1.0 | A professional networking platform for legal professionals featuring AI-powered document simplification, pro bono services marketplace, lawyer-client matching, and community blogging. Built with PERN stack to democratize access to legal services and make complex legal documents accessible to everyone.

Notifications You must be signed in to change notification settings

sakshamVerma08/LexConnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

61 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βš–οΈ LexConnect - Legal Services Marketplace

LexConnect Banner

πŸ† Winner of LexHacks 1.0

A LinkedIn for Lawyers meets AI-Powered Legal Assistant

License: MIT Node.js Version PostgreSQL Next.js

Demo β€’ Features β€’ Installation β€’ Screenshots β€’ Contributing


πŸ“– About

LexConnect is a comprehensive legal services platform built on the PERN stack (PostgreSQL, Express, React, Node.js) with Next.js that bridges the gap between legal professionals and clients while making legal services more accessible and understandable. The platform combines professional networking features similar to LinkedIn with an intelligent AI assistant that simplifies complex legal documents for non-legal professionals.

Whether you're a lawyer looking to offer pro bono services, a legal professional seeking to network with peers, or someone in need of legal assistance, LexConnect provides the tools and community to connect, collaborate, and communicate effectively.

✨ Key Features

πŸ€– AI-Powered Document Simplification

  • Upload complex legal documents and receive plain-language explanations
  • AI chatbot breaks down legal jargon into understandable terms
  • Perfect for clients without legal backgrounds

πŸ‘₯ Professional Networking

  • LinkedIn-style profiles for lawyers
  • Showcase specializations, experience, and credentials
  • Build your professional legal network

πŸ’Ό Service Marketplace

  • Pro Bono Services: Connect with lawyers offering free legal assistance
  • Paid Consultations: Browse and book legal services
  • Category-based search (Family Law, Criminal Law, Corporate Law, etc.)

πŸ“ Legal Blog Community

  • Lawyers can share insights, articles, and legal updates
  • Discuss recent judgments and legal developments
  • Comment and engage with the legal community

πŸ” Advanced Search & Filtering

  • Filter lawyers by specialization, experience, and rating
  • Location-based search
  • Availability and pricing filters

⭐ Rating & Review System

  • Client reviews and ratings for lawyers
  • Build trust through transparent feedback
  • Quality assurance for legal services

πŸ’¬ Real-Time Messaging

  • Direct communication between lawyers and clients
  • Secure and private conversations
  • Case discussion and consultation

πŸ“Š Case Management Dashboard

  • Track ongoing cases
  • Manage client relationships
  • Monitor pro bono commitments

🎬 Demo

Demo GIF

Live Demo Link | Video Walkthrough

πŸ“Έ Screenshots

Landing Page

Landing Page

AI Document Simplification

AI Assistant

Legal Community

Blog Section

πŸ› οΈ Tech Stack

Frontend

  • Next.js - React framework with SSR/SSG
  • React.js - UI library
  • Material-UI (MUI) - Component library
  • Redux/Context API - State management
  • Axios - HTTP client

Backend

  • Node.js - Runtime environment
  • Express.js - Web framework
  • PostgreSQL - Relational database
  • Prisma/Sequelize - ORM
  • JWT - Authentication
  • Socket.io - Real-time messaging

AI Integration

  • OpenAI API / Custom NLP Model - Document simplification
  • Natural Language Processing - Legal text analysis

Additional Tools

  • Multer - File upload handling
  • Cloudinary - Image storage
  • bcrypt - Password hashing
  • dotenv - Environment variables

πŸš€ Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v16.0.0 or higher)
  • PostgreSQL (v12 or higher)
  • npm or yarn
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/lexconnect.git
    cd lexconnect
  2. Install backend dependencies

    cd backend
    npm install
  3. Install frontend dependencies

    cd ../frontend
    npm install
  4. Set up PostgreSQL database

    # Create a new PostgreSQL database
    createdb lexconnect
    
    # Or using psql
    psql -U postgres
    CREATE DATABASE lexconnect;
    \q
  5. Set up environment variables

    Create a .env file in the backend directory:

    # Server Configuration
    PORT=5000
    NODE_ENV=development
    
    # Database
    DATABASE_URL=postgresql://username:password@localhost:5432/lexconnect
    
    # JWT Secret
    JWT_SECRET=your_jwt_secret_key_here
    JWT_EXPIRE=7d
    
    # AI API (OpenAI or your custom API)
    AI_API_KEY=your_openai_api_key
    AI_API_URL=https://api.openai.com/v1
    
    # Cloudinary (for image uploads)
    CLOUDINARY_CLOUD_NAME=your_cloud_name
    CLOUDINARY_API_KEY=your_api_key
    CLOUDINARY_API_SECRET=your_api_secret
    
    # Email Configuration (optional)
    EMAIL_SERVICE=gmail
    EMAIL_USER=[email protected]
    EMAIL_PASSWORD=your_email_password
    
    # Frontend URL
    CLIENT_URL=http://localhost:3000

    Create a .env.local file in the frontend directory:

    NEXT_PUBLIC_API_URL=http://localhost:5000/api
    NEXT_PUBLIC_SOCKET_URL=http://localhost:5000
  6. Run database migrations

    cd backend
    # If using Prisma
    npx prisma migrate dev
    npx prisma generate
    
    # If using Sequelize
    npx sequelize-cli db:migrate
  7. Run the application

    Backend:

    cd backend
    npm run dev

    Frontend (Next.js):

    cd frontend
    npm run dev
  8. Access the application

    Email Configuration (optional)

    EMAIL_SERVICE=gmail EMAIL_USER=[email protected] EMAIL_PASSWORD=your_email_password

    Frontend URL

    CLIENT_URL=http://localhost:3000

    
    Create a `.env` file in the `frontend` directory:
    ```env
    REACT_APP_API_URL=http://localhost:5000/api
    REACT_APP_SOCKET_URL=http://localhost:5000
    
  9. Start MongoDB

    # For macOS/Linux
    mongod
    
    # For Windows
    # Start MongoDB service from Services or run:
    "C:\Program Files\MongoDB\Server\{version}\bin\mongod.exe"
  10. Run the application

    Backend:

    cd backend
    npm run dev

    Frontend:

    cd frontend
    npm start
  11. Access the application

πŸ“ Project Structure

lexconnect/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   └── db.js
β”‚   β”œβ”€β”€ controllers/
β”‚   β”‚   β”œβ”€β”€ authController.js
β”‚   β”‚   β”œβ”€β”€ lawyerController.js
β”‚   β”‚   β”œβ”€β”€ caseController.js
β”‚   β”‚   β”œβ”€β”€ blogController.js
β”‚   β”‚   └── aiController.js
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ User.js
β”‚   β”‚   β”œβ”€β”€ Lawyer.js
β”‚   β”‚   β”œβ”€β”€ Case.js
β”‚   β”‚   β”œβ”€β”€ Blog.js
β”‚   β”‚   └── Message.js
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ auth.js
β”‚   β”‚   β”œβ”€β”€ lawyers.js
β”‚   β”‚   β”œβ”€β”€ cases.js
β”‚   β”‚   β”œβ”€β”€ blogs.js
β”‚   β”‚   └── ai.js
β”‚   β”œβ”€β”€ middleware/
β”‚   β”‚   β”œβ”€β”€ auth.js
β”‚   β”‚   └── upload.js
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   └── aiService.js
β”‚   └── server.js
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ Auth/
β”‚   β”‚   β”‚   β”œβ”€β”€ Lawyer/
β”‚   β”‚   β”‚   β”œβ”€β”€ Blog/
β”‚   β”‚   β”‚   β”œβ”€β”€ AI/
β”‚   β”‚   β”‚   └── Common/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ Home.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ LawyerProfile.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Marketplace.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Blog.jsx
β”‚   β”‚   β”‚   └── Dashboard.jsx
β”‚   β”‚   β”œβ”€β”€ context/
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ App.js
β”‚   β”‚   └── index.js
β”‚   └── package.json
β”‚
└── assets/
    └── (screenshots and images)

🎯 Usage

For Lawyers

  1. Create Profile: Sign up and complete your professional profile
  2. List Services: Add pro bono or paid service offerings
  3. Write Blogs: Share your legal expertise with the community
  4. Connect: Network with other legal professionals
  5. Manage Cases: Track and manage client cases through the dashboard

For Clients

  1. Search Lawyers: Find lawyers by specialization and location
  2. Use AI Assistant: Upload legal documents for simplified explanations
  3. Request Services: Connect with lawyers for pro bono or paid assistance
  4. Read Blogs: Stay informed about legal developments
  5. Leave Reviews: Rate and review your experience with lawyers

πŸ† LexHacks 1.0 Recognition

This project was awarded 1st Place at LexHacks 1.0, recognizing its innovation in:

  • Making legal services more accessible
  • Democratizing legal knowledge through AI
  • Building a supportive legal community
  • Bridging the gap between legal professionals and those in need

🀝 Contributing

We welcome contributions to LexConnect! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch
    git checkout -b feature/AmazingFeature
  3. Commit your changes
    git commit -m 'Add some AmazingFeature'
  4. Push to the branch
    git push origin feature/AmazingFeature
  5. Open a Pull Request

Contribution Guidelines

  • Follow the existing code style
  • Write clear commit messages
  • Update documentation as needed
  • Add tests for new features
  • Ensure all tests pass before submitting PR

πŸ› Bug Reports

Found a bug? Please open an issue with:

  • Clear description of the bug
  • Steps to reproduce
  • Expected vs actual behavior
  • Screenshots (if applicable)
  • Your environment details

πŸ“‹ Roadmap

  • Mobile application (React Native)
  • Video consultation feature
  • Multi-language support
  • Advanced AI features (case prediction, legal research)
  • Integration with legal databases
  • Payment gateway integration
  • Appointment scheduling system
  • Document template library

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Your Name

πŸ™ Acknowledgments

  • Thanks to LexHacks 1.0 organizers and judges
  • OpenAI for AI capabilities
  • The open-source community
  • All contributors and testers

πŸ“ž Support

For support, email [email protected] or join our Slack channel.


Made with ❀️ and βš–οΈ by the LexConnect Team

⭐ Star this repo if you find it helpful!

About

πŸ† Winner of LexHacks 1.0 | A professional networking platform for legal professionals featuring AI-powered document simplification, pro bono services marketplace, lawyer-client matching, and community blogging. Built with PERN stack to democratize access to legal services and make complex legal documents accessible to everyone.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •