{"id":28169229,"url":"https://github.com/stephanfward/instantlegaldoc","last_synced_at":"2025-05-15T16:16:20.277Z","repository":{"id":288192117,"uuid":"967137562","full_name":"StephanFWard/InstantLegalDoc","owner":"StephanFWard","description":"InstantLegal AI - Legal Document Generator (C# + React)","archived":false,"fork":false,"pushed_at":"2025-04-16T03:03:40.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T03:23:52.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephanFWard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-16T01:50:15.000Z","updated_at":"2025-04-16T03:03:43.000Z","dependencies_parsed_at":"2025-04-16T03:24:09.689Z","dependency_job_id":"769453a1-4771-4da8-a044-a137d7b6c287","html_url":"https://github.com/StephanFWard/InstantLegalDoc","commit_stats":null,"previous_names":["stephanfward/instantlegaldoc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FInstantLegalDoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FInstantLegalDoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FInstantLegalDoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FInstantLegalDoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanFWard","download_url":"https://codeload.github.com/StephanFWard/InstantLegalDoc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374544,"owners_count":22060614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-15T16:16:13.921Z","updated_at":"2025-05-15T16:16:20.268Z","avatar_url":"https://github.com/StephanFWard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InstantLegal AI – Legal Document Generator\n\nA modern web application that generates professional legal documents using OpenAI's GPT-4 API and iTextSharp for PDF generation.\n\n## Features\n\n- AI-powered legal document generation\n- Multiple document types (NDA, Terms of Service, Privacy Policy, etc.)\n- Customization based on business type, industry, and state\n- PDF generation and download\n- Responsive web interface\n- Stripe payment integration\n\n## Tech Stack\n\n- **Backend**: C#, ASP.NET Core\n- **AI**: OpenAI GPT-4 API\n- **PDF Generation**: iTextSharp\n- **Frontend**: React, TypeScript\n- **Payment Processing**: Stripe\n- **Security**: CORS protection\n\n## Installation\n\n### Prerequisites\n\n- .NET 7.0 SDK\n- Node.js 16+\n- Stripe API key\n- OpenAI API key\n\n### Backend Setup\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/StephanFWard/InstantLegalDoc.git\n   cd instantlegal-ai/app\n   \n2. **Configure settings:**\n\nCopy example.settings.json to appsettings.json in the backend project directory.\n\n2. **Fill in your API keys:**\n\n{\n  \"Logging\": {\n    \"LogLevel\": {\n      \"Default\": \"Information\",\n      \"Microsoft.AspNetCore\": \"Warning\"\n    }\n  },\n  \"AllowedHosts\": \"*\",\n  \"Stripe\": {\n    \"SecretKey\": \"your_stripe_secret_key_here\",\n    \"PublishableKey\": \"your_stripe_publishable_key_here\"\n  },\n  \"OpenAI\": {\n    \"ApiKey\": \"your_openai_api_key_here\"\n  }\n}\n\n3. **Replace the placeholder values with your actual Stripe and OpenAI API keys.**\n\n4. **Restore and build dependencies:**\n\n   ```bash\n   dotnet restore\n   dotnet build\n  \n5. **Run the backend:**\n\n   ```bash\n   dotnet run\n  \nThe API will be available at https://localhost:5001 (or as configured).\n\n6. **Frontend Setup**\n\n   ```bash\n   cd ../client\n  \n7. **Install dependencies:**\n\n   ```bash\n   npm install\n  \n8. **Start the frontend:**\n\n   ```bash\n   npm start\n  \nThe React app will be available at http://localhost:3000 by default.\n\n**Deployment**\n\nEnvironment Variables:\n\n1. Ensure your production environment has the following variables set (or in appsettings.json):\n\n2. Stripe:SecretKey\n\n3. Stripe:PublishableKey\n\n4. OpenAI:ApiKey\n\n5. Set ASPNETCORE_ENVIRONMENT to Production for production deployments.\n\n**Backend Deployment**\n\nDeploy the ASP.NET Core backend to your preferred cloud provider (Azure App Service, AWS Elastic Beanstalk, etc.).\n\nEnsure the Documents directory is writable by the application for PDF generation.\n\nExpose the necessary ports and configure HTTPS.\n\n**Frontend Deployment**\n\nDeploy the contents of the build directory to your static hosting provider (Vercel, Netlify, AWS S3, etc.).\n\nStripe and OpenAI Configuration\nMake sure your Stripe and OpenAI API keys are valid and have the necessary permissions.\n\nBuild the React app for production:\n\n   ```bash\n   npm run build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Finstantlegaldoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephanfward%2Finstantlegaldoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Finstantlegaldoc/lists"}