Spaces:
Sleeping
Sleeping
Add one-click GitHub Codespaces launch
Browse filesAdd devcontainer config that auto-installs deps and starts the server.
Update README with Codespaces badge and streamlined setup instructions.
Co-authored-by: Cursor <cursoragent@cursor.com>
Files changed (2)
- .devcontainer/devcontainer.jsonAdded+20
- README.md+24-26
1234567891011121314151617181920{ "name": "Eddison Intelligence", "image": "mcr.microsoft.com/devcontainers/python:3.12", "postCreateCommand": "pip install -r backend/requirements.txt && cp -n backend/.env.example backend/.env 2>/dev/null || true", "postStartCommand": "cd backend && uvicorn server:app --host 0.0.0.0 --port 8000 &", "forwardPorts": [8000], "portsAttributes": { "8000": { "label": "Eddison Intelligence", "onAutoForward": "openBrowser" } }, "customizations": { "vscode": { "settings": { "python.defaultInterpreterPath": "/usr/local/bin/python" } } }}7 unmodified lines891011121336 unmodified lines5051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596977 unmodified lines[How It Works](#how-it-works) · [The Problem](#the-problem) · [Our Approach](#our-approach) · [Quick Start](#quick-start) · [Tech Stack](#tech-stack)---</div>36 unmodified lines## Quick Start### 1. Clone and set up```bashgit clone https://github.com/enricoxpioppi98/eddison-intelligence.gitcd eddison-intelligence/backendpython3 -m venv venvsource venv/bin/activatepip install -r requirements.txt```### 2. Configure API keys```bashcp .env.example .env# Edit .env and add your keys:# ANTHROPIC_API_KEY=sk-ant-... (required for AI features)# PATENTSVIEW_API_KEY=... (optional, for real patent search)```- Get an Anthropic key at [console.anthropic.com](https://console.anthropic.com/)- Request a free PatentsView key at [patentsview.org/apis/keyrequest](https://patentsview.org/apis/keyrequest)### 3. Run```bashsource venv/bin/activatepython -m uvicorn server:app --port 8765 --app-dir backend# → http://localhost:8765```The server serves the frontend and proxies all API calls.> **Demo mode**: If you skip the API keys, the app still works with built-in demo data for all three steps.## Tech Stack| Layer | Details ||-------|---------|| **Frontend** | Single-file HTML / CSS / JS — zero build step || **Backend** | Python + FastAPI — 3 API endpoints || **AI** | Claude API for keyword extraction, prior art simulation, and claim drafting || **Patent Data** | PatentsView API for real U.S. patent search (falls back to Claude when unavailable) || **Design** | Dark theme · Bebas Neue + DM Sans + DM Mono typography || **Fallback** | Built-in demo data when no API keys are configured |7 unmodified lines8910111213141536 unmodified lines52535455565758596061626364656667686970717273747576777879808182838485868788899091929394957 unmodified lines[How It Works](#how-it-works) · [The Problem](#the-problem) · [Our Approach](#our-approach) · [Quick Start](#quick-start) · [Tech Stack](#tech-stack)[](https://codespaces.new/enricoxpioppi98/eddison-intelligence?quickstart=1)---</div>36 unmodified lines## Quick Start### One-Click (GitHub Codespaces)Click the button below to launch the app in your browser — no local setup needed:[](https://codespaces.new/enricoxpioppi98/eddison-intelligence?quickstart=1)The app auto-installs dependencies and opens in your browser. To add API keys:1. Open `backend/.env` in the Codespaces editor2. Add your keys:- **Gemini** (required for AI features) — get a free key at [aistudio.google.com/apikey](https://aistudio.google.com/apikey)- **PatentsView** (optional, for real patent search) — request at [patentsview.org](https://patentsview-support.atlassian.net/servicedesk/customer/portal/1/group/1/create/18)3. Restart the server: open the terminal and run `cd backend && uvicorn server:app --host 0.0.0.0 --port 8000`> **Demo mode**: The app works without API keys using built-in demo data for all three steps.### Local Setup```bashgit clone https://github.com/enricoxpioppi98/eddison-intelligence.gitcd eddison-intelligence/backendpython3 -m venv venvsource venv/bin/activatepip install -r requirements.txtcp .env.example .env# Edit .env and add your keysuvicorn server:app --port 8000# → http://localhost:8000```## Tech Stack| Layer | Details ||-------|---------|| **Frontend** | Single-file HTML / CSS / JS — zero build step || **Backend** | Python + FastAPI — 3 API endpoints || **AI** | Gemini API for keyword extraction, prior art simulation, and claim drafting || **Patent Data** | PatentsView API for real U.S. patent search (falls back to Gemini when unavailable) || **Design** | Dark theme · Bebas Neue + DM Sans + DM Mono typography || **Fallback** | Built-in demo data when no API keys are configured |
.devcontainer/devcontainer.jsonAdded+20
README.md+24-26