Skip to content
nova1128Public

About

legal assistant for all legal queries

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

LexAI — AI-Powered Legal Assistant & Lawyer Connect Platform

GitHub LinkedIn

Project Structure

lexai/
├── backend/     ← Spring Boot REST API (Java 21)
└── frontend/    ← React + Vite frontend

Quick Start

Backend

cd backend
# Set your Gemini API key in src/main/resources/application.properties
mvn spring-boot:run
# API runs on http://localhost:8080
# Swagger UI: http://localhost:8080/swagger-ui/index.html

Frontend

cd frontend
npm install
npm run dev
# Runs on http://localhost:3000

Environment Variables (for Railway deployment)

Variable Description
DB_URL PostgreSQL JDBC URL
DB_USERNAME Database username
DB_PASSWORD Database password
JWT_SECRET 256-bit hex JWT secret
JWT_EXPIRATION Token expiry in ms (3600000 = 1hr)
GEMINI_API_KEY Google Gemini API key (free at aistudio.google.com)
PORT Server port (Railway sets this automatically)

Deploying Backend to Railway

  1. Push to GitHub
  2. Connect repo to Railway
  3. Set environment variables in Railway dashboard
  4. Railway auto-deploys on every push

Tech Stack

Backend: Java 21, Spring Boot 3.5, Spring Security, JWT, BCrypt, PostgreSQL, Gemini AI, Swagger
Frontend: React 18, Vite, React Router, Axios
Database: PostgreSQL on Neon.tech
Deployment: Railway (backend), Vercel/Netlify (frontend)

Author

Kavya Agarwal — B.Tech CSE, GLA University (2024-2028)

About

legal assistant for all legal queries

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages